example.pl - An example script on how to use the Software::Packager module.
I created this script after a request from someone who was using this module asked how to properly use the Software::Packager module.
There is not really much to the process.
You start in the usual way...
#!/usr/bin/perl use strict; use Software::Packager;
next we need to create an object with which to reference the Software::Packager
my $packager = new Software::Packager;
This will try to return the Software::Packager::<platform> for your current platform.
Alternativly you can specify the Software::Packager::<sub class> that you want to use.
my $packager = new Software::Packager('tar');
To install Software::Packager, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Software::Packager
CPAN shell
perl -MCPAN -e shell install Software::Packager
For more information on module installation, please visit the detailed CPAN module installation guide.