Help for this page

Select Code to Download


  1. or download this
    my $p = sub {
        my $n = 2;
    ...
    while ((my $n = $p->()) < 500) {
        print "$n\n";
    }
    
  2. or download this
    $g = sub { $n++ };
    
  3. or download this
    perl -e 'print sub { "Hello @{[shift]}!\n" }->("World")'