Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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

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

Help for this page

Select Code to Download


  1. or download this
    sub gensym () {
        my $name = "GEN" . $genseq++;
    ...
        delete $$genpkg{$name};
        $ref;
    }
    
  2. or download this
      {
        my $glob = gensym() ;
    ...
        print "SCOPED: " . "${*$glob}\n" ;
      }
      print "OUT: " . ${*Symbol::GEN0} . "\n";
    
  3. or download this
    SCOPED: 123
    OUT: 123
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (6)
As of 2024-04-25 10:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found