Help for this page

Select Code to Download


  1. or download this
    BEGIN {
      my $current = 0;
      sub gimme_next {  ++$current  }
    }
    
  2. or download this
    my $foo = sub { 2 * shift };