Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## myscript.pl
- use strict;
- use warnings;
- use Log::Log4perl qw(:easy);
- Log::Log4perl->easy_init($ERROR);
- ERROR( "ERROR MESSAGE" );
- ## create_script.sh : creates a standalone binary myscript2 of myscript.pl
- ## Remember to install PAR::Packer first
- cpanm -v -L local Log::Log4perl
- perlversion=$(perl -MConfig -e 'print $Config{version}')
- pp -B \
- -I ./local/lib/perl5 \
- -a "./local/lib/perl5/;$perlversion/" \
- -o myscript2 \
- myscript.pl
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement