No such thing as a small change | |
PerlMonks |
Re: Array to Hashby httptech (Chaplain) |
on May 10, 2000 at 20:29 UTC ( [id://10991]=note: print w/replies, xml ) | Need Help?? |
for (@array) { $hash{$_} = 1 } is how I'd do it.
In Section
Seekers of Perl Wisdom
|
|