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

Thanks - so I basically just need to de-def it before I can do anything? :)
  • Comment on Re^2: Remove multiple fields from hashref?

Replies are listed 'Best First'.
Re^3: Remove multiple fields from hashref?
by ultranerds (Hermit) on Mar 12, 2014 at 07:06 UTC
    Never mind - I see what you mean - and it worked a charm. Thanks :)

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