hi! this is a simple program i wrote to understand references..
($a,$b,$c) = (\"1",\"2",\"3"); %hash = ($a=>"hello",$b=>"Perl"); foreach $key (keys%hash){ $keyval = ${$key}; print "$keyval\n"; print ("The key is $$key and the value is $hash{$key}\n"); } the output is: The key is and the value is hello The key is and the value is Perl Why am i not able to print the key value using the reference? thanks, karthik -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]