On Sun, 17 Feb 2002 at 00:07 GMT, Geoffrey F. Green wrote:
> Hi.  Newbie to perl here.  I've got two problems (well, two perl-related
> problems), relating to the same program.

 To iterate over a hash, you want to use the keys() function.
 
 foreach my $keys ( keys %table) {
     print $table{$keys}->{search},"\n";
     print $table{$keys}->{shortname},"\n";
 }

 Otherwise, perl iterates alternatively over the keys and the values of
 the hash, which causes the extra newlines and the warnings.

-- 
briac
 << dynamic .sig on strike, we apologize for the inconvenience >>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to