Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Clearing Array Values

by screamingeagle (Curate)
on Feb 09, 2002 at 05:11 UTC ( #144320=note: print w/replies, xml ) Need Help??


in reply to Clearing Array Values

well, in my opinion, one would be better off using :
@myarray = ();
When you use
$#myarray = ()
you are referring to the number of elements in the array, not the array itself, since $#myarray gets the number of array elements present

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://144320]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (10)
As of 2017-02-21 12:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (309 votes). Check out past polls.