Refactor:
my $result = CPANBaker->tar( filelist => [ ... ], # ------- optional compress => 'gzip' , 'bzip2', filename => ... , sudo => 1, verbose => 1,2,3 exclude => [ qw[ ] ], exclude_listfile => ..., tarbin => ... , taropts => ... , preserve_permission => 0, );
To install App::cpanbaker, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::cpanbaker
CPAN shell
perl -MCPAN -e shell install App::cpanbaker
For more information on module installation, please visit the detailed CPAN module installation guide.