We don't bite newbies here... much | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Which part of it is confusing? I suspect you wonder why $x is undefined. The for loop sets $_ for loops alias the control variable to the values iterated -- and readZip() modifies $_, which is an alias for $x within the loop. When the loop ends, $x still holds the last value assigned to $_ within the loop: undef. local $_; at the start of readZip() would fix this. (You also don't need the prototype.) Update: Removed some very unclear text, thanks to ikegami. In reply to Re: Help need in Miscellaneous code
by chromatic
|
|