in reply to Assign (key, value) to a hash w/o clobbering hash
%hash = map { split( /X/, $_ ) } ( "fooXbar","bishXbash") ; # look Ma, that works! foreach(keys %hash){ print "1: $_ = $hash{$_}\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Assign (key, value) to a hash w/o clobbering hash
by reasonablekeith (Deacon) on Sep 28, 2006 at 13:30 UTC | |
by mreece (Friar) on Sep 28, 2006 at 14:45 UTC | |
by wazoox (Prior) on Sep 29, 2006 at 15:45 UTC |