Yeah, thats about it :)
FWIW, you don't need the extra {} in this case , but its the simplest rule to remember
$ perl -MData::Dump -e " $f = { 1..8 }; delete @$f{1..4}; dd$f; " { 5 => 6, 7 => 8 }
Also happens to be first rule in References quick reference
99/100 I use rule 1 :)
In reply to Re^4: Remove multiple fields from hashref?
by Anonymous Monk
in thread Remove multiple fields from hashref?
by ultranerds
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |