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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How PAR pp works?
by almut (Canon) on Jun 21, 2010 at 16:21 UTC | |
by saintex (Scribe) on Jun 21, 2010 at 19:52 UTC | |
by almut (Canon) on Jun 21, 2010 at 20:15 UTC | |
by Anonymous Monk on Jun 21, 2010 at 23:01 UTC | |
by almut (Canon) on Jun 21, 2010 at 23:34 UTC | |
| |
Re: How PAR pp works?
by Anonymous Monk on Jun 21, 2010 at 16:47 UTC | |
by saintex (Scribe) on Jun 23, 2010 at 17:04 UTC | |
by Anonymous Monk on Nov 13, 2014 at 01:07 UTC | |
by Anonymous Monk on Sep 14, 2013 at 00:57 UTC |
Back to
Seekers of Perl Wisdom