First off, you want:
my $rhash = shift;
instead of
$rhash = @_;
The latter will assign the number of elements in @_ (which is 1) to $rhash.
After that change you can say
print $rhash->{value1};
or
$rhash->{value1} = 7;
Tanton
-----Original Message-----
From: jonathan vandine
To: [EMAIL PROTECTED]
Sent: 11/15/2001 10:08 AM
Subject: Printing with arrow notation
I am passing a hash as a reference to a subroutine and want to print its
values using arrow notation. Such as..
%hash ("value1", "value2", etc..);
PrintHash(\%hash);
sub PrintHash
{
$rhash = @_;
What would work here for print using arrow notation?
}
Thanks
_________________________________________________________________
Get your FREE download of MSN Explorer at
http://explorer.msn.com/intl.asp
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]