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:
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";
And I'm trying to have an executable file, with all dependencies ("use switch") solved. I'm tring:
pp -o hello.exe
But the switch is not in the executable libraries.
En fact I have:
Can't locate 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 line 1 BEGIN failed--compilation aborted at line 7. Compilation failed in require at script/ line 3. BEGIN failed--compilation aborted at script/ line 3.
I have also read the documentation and tried -B option, but without result.

How can I build an executable file with (or builded in it?
Thank you