Help for this page

Select Code to Download


  1. or download this
    #               | declares $x in the scope of the block
    my $lambda = -> $x { $x * $x }
    ...
    
    #          | declares $x in the scope of the block
    sub square($x) { $x * $x }