go ahead... be a heretic | |
PerlMonks |
Re: Use of uninitialized value $_ in pattern match (m//)by toolic (Bishop) |
on Mar 09, 2016 at 17:45 UTC ( [id://1157194]=note: print w/replies, xml ) | Need Help?? |
You should delete all elements of the array each time through the loop, not assign the value undef to the 1st element. Change:
to:
Tip #4 from the Basic debugging checklist: Data::Dumper
In Section
Seekers of Perl Wisdom
|
|