Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2017-02-23 04:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (339 votes). Check out past polls.