[Follow-up]RE: Printing with arrow notation

2001-11-15 Thread RArul
: Printing with arrow notation %hash =('key1'=>'value1','key2'=> 'value2'); PrintHash(\%hash); sub PrintHash{ $rhash = shift; for(keys %{$rhash}){ print "$_ => $rhash->{$_}\n"; } } would work. -- Rex -Original Messa

RE: Printing with arrow notation

2001-11-15 Thread Gibbs Tanton - tgibbs
[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 { $rha

Re: Printing with arrow notation

2001-11-15 Thread register
$rhash->{$key} assuming $key is the value of the key of the hash so %hash = (key1=>val1,key2=>val2...etc) would result in $rhash->{key1} producing val1!! On Thu, Nov 15, 2001 at 04:08:18PM +, jonathan vandine shaped the electrons to read: > I am passing a hash as a reference to a subroutine

RE: Printing with arrow notation

2001-11-15 Thread RArul
vandine [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 15, 2001 11:08 AM To: [EMAIL PROTECTED] 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", et

Printing with arrow notation

2001-11-15 Thread jonathan vandine
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 __