Help for this page

Select Code to Download


  1. or download this
    my %hash = ( foo => "bar" );
    my $hashref = \%hash;        # take a reference to the hash
    print $hashref->{foo},"\n";  # acccess a value via the ref
    my %attrs = %{ $hashref };   # makes a shallow copy