Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: TIMTOWTDI Challenge: Zero'ing Out An Array

by wfsp (Abbot)
on Sep 27, 2011 at 16:30 UTC ( [id://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
    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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://928115]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (2)
As of 2024-04-20 05:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found