in reply to Updating hash using it's reference ...
Modern Perl by chromatic a loose description of how experienced and effective Perl 5 programmers work....You can learn this too.#!/usr/bin/perl -- use strict; use warnings; use Data::Dump qw/ dd /; my %hash = ( 1,2 ); my $ref = \%hash; dd( $ref ); $ref->{alec}='smart'; dd( $ref ); __END__ { 1 => 2 } { 1 => 2, alec => "smart" }
It is reviewed and recommended by Perl Tutorial Hub
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Updating hash using it's reference ...
by karthikin2asic (Initiate) on Jul 12, 2014 at 08:29 UTC | |
by Corion (Patriarch) on Jul 12, 2014 at 08:41 UTC | |
by hexcoder (Curate) on Jul 12, 2014 at 18:08 UTC |