Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Funkyness with closures...

by Petruchio (Vicar)
on Sep 30, 2001 at 06:48 UTC ( [id://115701]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    { 
      my $foo = "Foo!\n";
    ...
    } 
    makefoo();
    foo();
    
  2. or download this
    { 
      my $foo = "Foo!\n";
    ...
    } 
    makefoo();
    foo();
    
  3. or download this
    { 
      my $foo = "Foo!\n";
    ...
    } 
    makefoo();
    foo();
    
  4. or download this
    my $foo = "Foo!\n";
    sub makefoo { 
    ...
    } 
    makefoo();
    foo();
    
  5. or download this
    my $foo = "Foo!\n";
    sub makefoo {
    ...
    $foo = "Moo!\n";
    makefoo();
    foo();
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-25 13:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found