Help for this page

Select Code to Download


  1. or download this
    $n=1; #we have no idea which variables should be cascaded.
    $subref=sub { return $n *3 };
    ...
    print &$subref, "\n";
    $n=2;
    print &$subref, "\n";
    
  2. or download this
    use Cascade;
    
    ...
    
    $m=$n;
    $n=$m+1;