Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://928128]
help
Chatterbox?
[choroba]: It's been reported before
[Discipulus]: ok no big deal anyway..
[Discipulus]: mmh choroba.. my post is not for you, if you do not want your golfing game somehow spoilered for one of the problems. Adviced! ;=)
[Discipulus]: no that i aim to victory anyway..

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (8)
As of 2017-10-22 19:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (275 votes). Check out past polls.

    Notices?