Santana wrote:
In this example this foreach loop in "printHT" function dont work , how is missed ?
Really? What output did you get, and what did you expect?
#!/usr/bin/perl use strict; use warnings; sub printHT($) { my $T =$_[0]; foreach my $id (keys (%$T)){ #This dont work :) print $$T{$id} . "\n"; } } my %ht_state=("AL" => "Alabama","AK" => "Alaska"); &printHT(\%ht_state);
-- 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/