Beefy Boxes and Bandwidth Generously Provided by pair Networks BBQ
The stupid question is the question not asked
 
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 surveying the Monastery: (7)
As of 2014-04-19 08:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (478 votes), past polls