Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: debugging during compile

by pileofrogs (Priest)
on Aug 18, 2011 at 18:12 UTC ( #921040=note: print w/replies, xml ) Need Help??


in reply to Re: debugging during compile
in thread debugging during compile

Ladies and gentlemen, we have a winner!

I hadn't realized the code in the module would be run after compile and before the calling script continued compiling.

I put some print statements in the main body of my module and sure enough, ARGV was being altered in there. I tracked it down with a few more prints and found it.

Somehow in refactoring a sub, I had left a

my $self = shift; my $item = shift;

sitting naked in the main body of the module. Whee!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://921040]
help
Chatterbox?
Discipulus i'm doing an hard work to convince hime to not leave perl nor pm... many direct mails too
[marto]: who?
[Eily]: "hime"? The perl princess?
[Discipulus]: oops !

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2017-06-23 09:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (539 votes). Check out past polls.