Help for this page

Select Code to Download


  1. or download this
    use Lexical::Alias ('alias');
    my $ref = { a => 'b', c => 'd' };
    my %hash; alias %{$ref}, %hash;
    print $ref->{'a'}; $hash{'a'} = 'e'; print $ref->{'a'};
    
  2. or download this
    $ perl alias.pl
    b
    e