Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: TIMTOWTDI Challenge: Zero'ing Out An Array

by ikegami (Pope)
on Sep 27, 2011 at 17:53 UTC ( #928128=note: print w/replies, xml ) Need Help??

in reply to TIMTOWTDI Challenge: Zero'ing Out An Array

my @array;

I don't think I've ever had to zero out an array, and when I see it in code, it's just because the coder mispositioned a my @array;.

By the way, undef @array; and $#array = -1; do more than just empty the array.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://928128]
[GrandFather]: It's either lines that your browser won't split (no white space) or nodes with <pre> tags which ought to be code tags
[GrandFather]: I haven't noticed the problem for a while, but it can be hard to find the nasty node. If you do find it, consider it and with luck a janitor will fix it

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2017-05-24 01:01 GMT
Find Nodes?
    Voting Booth?