Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: TIMTOWTDI Challenge: Zero'ing Out An Array

by wfsp (Abbot)
on Sep 27, 2011 at 16:30 UTC ( #928115=note: print w/replies, xml ) Need Help??

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

For a one element array
$array[0] = 0;
For a two element array
$array[0] = 0; $array[1] = 0;
For a three element array... (left as an exercise for the reader)

Replies are listed 'Best First'.
Re^2: TIMTOWTDI Challenge: Zero'ing Out An Array
by Limbic~Region (Chancellor) on Sep 27, 2011 at 16:32 UTC
    While your interpretation of "zero'ing out" is valid, based on the examples provided is not a correct one. Thanks for the laugh though ;-)

    Cheers - L~R

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://928115]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2016-10-27 05:41 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (353 votes). Check out past polls.