Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: wxperl + PAR::Packer + GUI not workingby awwaiid (Friar) |
on Jul 07, 2011 at 19:48 UTC ( [id://913252]=note: print w/replies, xml ) | Need Help?? |
I don't know about the rest -- but for the 'caller' bit: caller() returns information about the sub that called the current sub. In the code that you gave, caller would normally return nothing when called as a regular script because nothing _called_ this code, instead this code is where everything starts. What must be happening is that in PAR there is some script that kicks off, and then does a 'do' or similar on your script. You might be able to illustrate this to yourself by dumping out a stack trace. Just above your 'unless', put:
That will print out the whole callchain. Now run your program directly, and then again from a PAR exe, and note the difference.
In Section
Seekers of Perl Wisdom
|
|