Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: undefining one slot of a typeglob

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

Help for this page

Select Code to Download


  1. or download this
        my $d = *{ 'main::destination::' };
        delete $d->{foo};
    
  2. or download this
      *FOO = sub { print "SUB FOO OK!\n" } ;
      $FOO = 123 ;
    ...
      foreach my $Key ( keys %holder ) { *{$glob} = $holder{$Key} ;}
    }
    
  3. or download this
    >>>>>>>>>> BEFORE RM:
    SUB FOO OK!
    ...
    Undefined subroutine &main::FOO called at tmp.pl line 17.
    CODE: 
    SCALAR: 123
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-19 02:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found