Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Clearing Array Values

by Parham (Friar)
on Feb 09, 2002 at 13:38 UTC ( [id://144350]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    undef @array; #@array undefined
    undef $scalar; #$scalar will be undefined
    
  2. or download this
    @array[2] = undef; #pick element number to undefine
    $scalar = undef; #$scalar will exist, but with no value
    
  3. or download this
    ($value1,undef,undef,$value2,$value3,undef) = @array;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2024-03-29 05:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found