We don't bite newbies here... much | |
PerlMonks |
Re^3: Filling in missing values in an arrayby FunkyMonk (Chancellor) |
on Jun 29, 2011 at 16:37 UTC ( [id://911994]=note: print w/replies, xml ) | Need Help?? |
Though I'm not quite sure how tests 3-5 are supposed to goNeither was I! So I made it die (a.k.a throws an exception) when the array consists only of NULLs. Garbage in, garbage out, as we used to say. Exceptions prevent the garbage leaking out. If you decide it should do something other than die, just change this line:
In Section
Seekers of Perl Wisdom
|
|