Help for this page

Select Code to Download


  1. or download this
    my @foo = sub ($x,$y) { state $n = 0; $x*$y*$n++ } ... *;
    
  2. or download this
    my $f = @foo[0];
    say $f.(2,9);
    
  3. or download this
    Not enough positional parameters passed; got 0 but expected 2