Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
The stupid question is the question not asked
 
PerlMonks  

Closure on Closures

by broquaint (Abbot)
on Jun 25, 2003 at 16:08 UTC ( #268891=perlmeditation: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
     
     1: sub DESTROY { print "stick a fork in '$_[0]' it's done\n" }
     2:
    ...
    we've left $bar's lexical scope
    stick a fork in 'main=ARRAY(0x80fbb0c)' it's done
    stick a fork in 'main=HASH(0x80fbbf0)' it's done
    
  2. or download this
    1: {
    2:   my $foo = "a string";
    ...
    
    $foo: [a string]
    $foo: []
    
  3. or download this
    1: {
    2:   my $foo = "a string";
    ...
    
    $foo: [a string]
    $foo: [a string]
    
  4. or download this
     1: {
     2:   my $cnt = 5;
    ...
    2
    1
    BOOM!
    
  5. or download this
     1: sub counter {
     2:   my $cnt = shift;
    ...
    2
    1
    BOOM!
    
  6. or download this
     1: use IO::Dir;
     2:
    ...
    example3.pl
    example4.pl
    example7.pl
    
  7. or download this
     1: use strict;
     2: use warnings;
    ...
    67:   
    68:   return $self;
    69: }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://268891]
Front-paged by diotalevi
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2014-04-21 02:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (489 votes), past polls