Pablo,
For @keys=%gen try
@keys = keys(%gen)
Hope this helps
Craig
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:perl-unix-
> [EMAIL PROTECTED]] On Behalf Of [EMAIL PROTECTED]
> Sent: Thursday, January 23, 2003 7:36 AM
> To: [EMAIL PROTECTED]
> Subject: [Perl-unix-users] Hash in
Could this be the old carrage return/linefeed problem?
Windows puts both a carriage return and a linefeed after each return.
Unix uses only one of them.
Mac OS (7-9.21) uses the other.
I don't have an ascii chart handy, but maybe someone else could shed more
light on this.
On Thursday 23 Janu
After you read it in from a file do you chomp (@list_names)? If you don't
then there is a "\n" on the end that the hash function will see and say that
there is no data associated with that key. Perl Windows may automatically
ignore this I don't know.
Matt Schneider
Programmer/System Administrat