This is perfect. The input is coming from a CPAN module so I'm fairly confident that the number of entries will be even, but checking is always a good idea.

You may want to check first that the list has an even number of entries:

die "Invalid parameters" if @_ % 2;

but after that it's just:

%myHash = @_;

HTH,

Rob






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

Reply via email to