Help for this page

Select Code to Download


  1. or download this
    my $code = sub { $x };   # $x is closed over
    
  2. or download this
    $ perl -MDevel::Peek -e'my $x; Dump(sub {1})'
    $ perl -MDevel::Peek -e'my $x; Dump(sub {$x})'