You'll need to use exists($hash{$key} to check for an element's presence instead of $hash{$key}, but that's actually faster since you skip the fetch of the value itself.@hash{split /\s+/,'1 2 3 4 5 6'} = ();
In reply to Re: splitting directly to hash
by pemungkah
in thread splitting directly to hash
by narashima
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |