[EMAIL PROTECTED] wrote:
How do I change the value stored to a hash reference?

C:\home>type test.pl
my %hash = (
    key => {
        refkey => 'oldvalue',
    },
);
print "$hash{key}->{refkey}\n";
$hash{key}->{refkey} = 'newvalue';
print "$hash{key}->{refkey}\n";

C:\home>test.pl
oldvalue
newvalue

C:\home>

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to