Help for this page

Select Code to Download


  1. or download this
    sub change {
        my $arr = shift;
    ...
    
    change([ $x, $y ]);
    print "($x) ($y)\n";
    
  2. or download this
    sub change {
        my $arr = shift;
        $$_++ for @$arr;
    ...
    my $y = 2;
    change([ \$x, \$y ]);
    print "($x) ($y)\n";