Help for this page

Select Code to Download


  1. or download this
    my $one = 1;
    my $two = 2;
    ...
      $x += 0.1;
    }
    print "\$one = $one\n"; # still 1.5, no link between $arr[0] and $one
    
  2. or download this
    my $one = 1;
    my $two = 2;
    ...
    print "\$one = $one\n"; # changed to 11. $_[0] was an alias to $one.
    indirect($one, $two, $three);
    print "\$one = $one\n"; # still 11. The $a was assigned a copy of the 
    +value. It's not an alias