in reply to Re: 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
Thanks for trying, but here are the results of both directions:
my @line = map { chomp } fgrep { /^[2-6] .+$/ } *DATA;
$VAR1 = [ 0 ];
my @line = grep { /^[2-6] .+$/ } fmap {chomp} *DATA;
$VAR1 = [];
It is okay if it is not possible until later munging. It is just a tad annoying.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Can figure out a way to get File::Grep's fgrep to chomp matches
by Your Mother (Archbishop) on May 14, 2017 at 00:14 UTC | |
by Lady_Aleena (Priest) on May 14, 2017 at 00:19 UTC | |
|
Re^3: Can figure out a way to get File::Grep's fgrep to chomp matches
by LanX (Saint) on May 14, 2017 at 00:08 UTC | |
by Lady_Aleena (Priest) on May 14, 2017 at 00:16 UTC | |
by LanX (Saint) on May 14, 2017 at 00:50 UTC |