in reply to Re^2: Can figure out a way to get File::Grep's fgrep to chomp matches
in thread Can figure out a way to get File::Grep's fgrep to chomp matches
my @line = fmap { chomp; /^[2-6] .+$/ ? $_ : () } *DATA;
Sorry, I don't think this interface was well designed ...
HTH :)
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Can figure out a way to get File::Grep's fgrep to chomp matches
by Lady_Aleena (Priest) on May 14, 2017 at 00:16 UTC | |
by LanX (Saint) on May 14, 2017 at 00:50 UTC |