On Tue, 22 Jan 2008, Chris Prather wrote:
> my %names = (@fieldspecs);
> my @names = keys %names; # works if the files are *always* evenly paired
There is no need for the temporary variable (unless you can make some
other use of the hash anyways); you can just create an anonymous hash
reference:
my @names = keys [EMAIL PROTECTED];
But, as Mike already mentioned, this will not preserve the original
order of the field names.
Cheers,
-Jan
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs