saintex has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks,
I'm trying to understand how PAR works.
First of all, I'm expecting it creates an executable file, with all dependencies resolved, but it seems it isn't so.
So I tried to do a simple code, like this one, just to test how PAR works:
pp -o hello.exe hello.pl
But the switch is not in the executable libraries.
En fact I have:
How can I build an executable file with deprecate.pm (or switch.pm) builded in it?
Thank you
I'm trying to understand how PAR works.
First of all, I'm expecting it creates an executable file, with all dependencies resolved, but it seems it isn't so.
So I tried to do a simple code, like this one, just to test how PAR works:
And I'm trying to have an executable file, with all dependencies ("use switch") solved. I'm tring:use strict; use warnings; use Switch; my $mode='network'; print "\n\n"; switch ($mode) { case ('alternative') { print 'alternative'; } case 'network' { print 'network'; } else { # local value or not specified print 'default'; } } print "\n\n";
pp -o hello.exe hello.pl
But the switch is not in the executable libraries.
En fact I have:
I have also read the documentation and tried -B option, but without result.Can't locate deprecate.pm in @INC (@INC contains: CODE(0x140 lf\IMPOST~1\Temp\par-wolf\cache-a6a07c4c8edef3f3831fbe053938 C:\DOCUME~1\wolf\IMPOST~1\Temp\par-wolf\cache-a6a07c4c8edef af3a550\inc CODE(0x124b304) CODE(0x124b604)) at if.pm line 1 BEGIN failed--compilation aborted at Switch.pm line 7. Compilation failed in require at script/ciao.pl line 3. BEGIN failed--compilation aborted at script/ciao.pl line 3.
How can I build an executable file with deprecate.pm (or switch.pm) builded in it?
Thank you
Back to
Seekers of Perl Wisdom