How about:
@X_delimited_strings = qw(fooXbar bishXbash); for (@X_delimited_strings) { @_ = split /X/; $hash{$_[0]} = $_[1]; }
You will have to accept a temp variable somewhere. You can use those already available to you (like $_ and @_) or declare your own.
--rjray
In reply to Re: Assign (key, value) to a hash w/o clobbering hash
by rjray
in thread Assign (key, value) to a hash w/o clobbering hash
by Melly
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |