Help for this page

Select Code to Download


  1. or download this
    # Named closures
    
    ...
    BEGIN {
        *foo = sub { print "@_\n" }
    }
    
  2. or download this
    sub foo : curry($);
    
    my $ref = foo();
    $ref->('hello');