cosmicperl has asked for the wisdom of the Perl Monks concerning the following question:
I don't fully understand why the @ is used. I guess because the qw is returning multiple values.my %hash = ( a => 1, b => 2, c => 3 ); delete @hash{qw/a b/};
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: deleting multiple hash keys
by zwon (Abbot) on Feb 28, 2009 at 20:26 UTC | |
by AnomalousMonk (Archbishop) on Mar 01, 2009 at 03:10 UTC | |
Re: deleting multiple hash keys
by Lawliet (Curate) on Mar 01, 2009 at 00:27 UTC | |
Re: deleting multiple hash keys
by shmem (Chancellor) on Mar 01, 2009 at 14:10 UTC | |
Re: deleting multiple hash keys
by cosmicperl (Chaplain) on Mar 04, 2009 at 20:02 UTC |