One option for you to do is to use App::FatPacker to "pack your dependencies onto your script file". I personally haven't used this module myself.
It comes with a frontend fatpack, it doesn't work on windows (just tried it)... last time I tried it in 2012 it didn't work either ... fatpack doesn't work for windows... not even in 2010
cpanm comes packed with fatpack and it work well on windows, but fatpack doesn't work for packing stuff on windows
$ cpanm App::FatPacker App::FatPacker is up to date. (0.010002) $ cat ddenvinc.pl #!/usr/bin/perl -- use strict; use warnings; use Data::Dump; dd(\%INC); dd(\%ENV); $ fatpack trace --to-stderr ddenvinc.pl ddenvinc.pl syntax OK
Neither strict.pm nor warnings.pm nor Data/Dump.pm are mentioned, it just doesn't work
In reply to Re^2: Can't locate .pm in @INC
by Anonymous Monk
in thread Can't locate .pm in @INC
by bbb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |