in reply to Ignore a range of numbers ina List
> It is not that I didn't want to use Regex , But just wanted to try out the Non-Regex solution .
Please note that to be able to kill a chicken using only the tongue does not make you a better chef
But do you like banning elements using a blacklist hash?
perl -e "$h{6}=$h{7}=1;for (@ARGV){print qq($_ ) unless exists $h{$_}} +" 1 6 2 2 7 1 6 99 99 7 1 2 2 1 99 99
L*
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Ignore a range of numbers in a List -- oneliner
by afoken (Chancellor) on Jun 27, 2017 at 05:01 UTC |