If you only need to populate the keys of the hash, then
@hash{@array} = ();will work. The values will all be undef.
--"The first rule of Perl club is you don't talk about Perl club."
In reply to Re: 1 line array to hash converter
by davorg
in thread 1 line array to hash converter
by rossta
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |