Ben Siders said: > 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.
If you have warnings on, Perl will whine if it's not. >>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 = @_; -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]