P is for Practical | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Yeah, knew that on the @ and $ thing there, used the @ so the writing was clearer.. I tested out your two thing and came up with a parallel <sp? its late> problem.
$array =(); print $#array, "\n"; results in -1 as it should be since the array has no values any longer and is a cleared array. $array = undef; print $#array, "\n"; results in 0; which is not a cleared array, its an array with one value, and in this programs case would have resulted in the same bug, since the looping would have then started at the $array1 value instead of $array[0] value. Ah. the things I think are important on a Friday night. Anyway, thanks for the comments, always more than one way to do a thing. webadept In reply to Re: Re: Clearing Array Values
by Anonymous Monk
|
|