Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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)


Comment on Re: TIMTOWTDI Challenge: Zero'ing Out An Array
Select or Download Code
Re^2: TIMTOWTDI Challenge: Zero'ing Out An Array
by Limbic~Region (Chancellor) on Sep 27, 2011 at 16:32 UTC
    wfsp,
    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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (10)
As of 2015-07-02 06:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (29 votes), past polls