in reply to Tracking down the line in error or warning
When I run that code, I get:
{C} > wtf.pl Use of uninitialized value in pattern match (m//) at C:\tmp\wtf.pl lin +e 10.
Line 10 is the pattern match in question. In any case, if it had spewed line 6, I would have looked at the IF block starting there and inserted some trusty "print "HERE\n" debug helpers to see where I was getting dumped out.
For more complicated logic trees and loops, I use PerlIDE - a simple freeware development tool that can do a step into/over debug which is really helpful if I'm stuck.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Tracking down the line in error or warning
by RyuMaou (Deacon) on Mar 24, 2009 at 13:52 UTC | |
Re^2: Tracking down the line in error or warning
by PoorLuzer (Beadle) on Mar 24, 2009 at 14:10 UTC |
In Section
Seekers of Perl Wisdom