in reply to Re^2: Remove multiple fields from hashref?
in thread Remove multiple fields from hashref?

Never mind - I see what you mean - and it worked a charm. Thanks :)
  • Comment on Re^3: Remove multiple fields from hashref?

Replies are listed 'Best First'.
Re^4: Remove multiple fields from hashref?
by Anonymous Monk on Mar 12, 2014 at 07:10 UTC

    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 :)