Help for this page

Select Code to Download


  1. or download this
    $ perl -E'
       sub f { say $1; "b"=~/(b)/; say $1; }
    ...
    a
    b
    a
    
  2. or download this
    $ perl -E'
       sub f { say $_[0]; "b"=~/(b)/; say $_[0]; }
    ...
    '
    a
    b
    
  3. or download this
    /.../;
    mysub("$1", "$2");
    ...
       shift;
       shift;
    }
    
  4. or download this
    my ($x, $y) =~ /.../;
    mysub($x, $y);
    ...
       shift;
       shift;
    }
    
  5. or download this
    /.../;
    mysub($1, $2);
    ...
       $x;
       $y;
    }