Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Re: Re: undefining one slot of a typeglob

by gmpassos (Priest)
on Feb 24, 2004 at 08:24 UTC ( [id://331349]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    undef *{$glob}{$type} ;
    
  2. or download this
    if    ($type eq 'SCALAR') { undef ${*{$glob}} ;}
      elsif ($type eq 'ARRAY')  { undef @{*{$glob}} ;}
      elsif ($type eq 'HASH')   { undef %{*{$glob}} ;}
      elsif ($type eq 'CODE')   { undef &{*{$glob}} ;}
      elsif ($type eq 'IO')     { close *{$glob} ;}
    

Log In?
Username:
Password:

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

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

    No recent polls found