in reply to What is %_
At risk of a spot of necromancy - I've just been handed a use of %_:
@list = grep { ! $_{$_} } @list;
It's neat because it's self contained. Although it does seem to leave some namespace pollution as a result
Found via: http://stackoverflow.com/questions/32846792/what-is-in-perl
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: What is %_
by LanX (Saint) on Sep 29, 2015 at 20:38 UTC |
In Section
Seekers of Perl Wisdom