Do you know where your variables are? | |
PerlMonks |
Re: Exception error in perl codeby ikegami (Patriarch) |
on Jun 25, 2009 at 11:23 UTC ( [id://774670]=note: print w/replies, xml ) | Need Help?? |
[ Reparented from later thread ]
timelocal doesn't like your inputs. It's even nice enough to tell you what they are. Apparently, @dmy contains two elements, both zero, when used to populate the args of timelocal. That's surely due to my $t = @match_list; setting $t to the number of elements in @match_list. This is very straightforward debugging. Your variable doesn't contain what it should, so you backtrack until you find where the program's state differs from your expectations.
As an aside, I wonder why you chose to ignore the warning lc $dmy[1] must have issued. Update: The above debugging would have taken less time than posting the question in at least three different places. Over the span of 9 days, no less! And you already got an answer 8 days ago! *boggled*
In Section
Seekers of Perl Wisdom
|
|