Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Clearing Array Values

by screamingeagle (Curate)
on Feb 09, 2002 at 05:11 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://144320]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2025-04-25 16:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.