Skip Menu |

This queue is for tickets about the File-Grep CPAN distribution.

Report information
The Basics
Id: 121670
Status: new
Priority: 0/
Queue: File-Grep

People
Owner: Nobody in particular
Requestors: ALEENA [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: No ability to chomp matches from fgrep
I've been trying for the last HOUR to chomp the matches in fgrep. It is impossible until I go to run that hash later in the script. This is VERY annoying. You need an example of how to get rid of the newlines in $array[$num]->{matches}. I have been going around in circles. I do NOT want newlines in the following output: $VAR1 = { '16' => '2 Collections ', '26' => '2 Miscellany ', '18' => '2 Fandom ', '22' => '2 Role playing ', '28' => '2 Acknowledgements ', '31' => '2 Reciprocated links ', '24' => '2 Writing ', '20' => '2 Movies ' }; Please fix this!
I believe I found the offending line, and it is 85. It would be good to chomp($line) there. On Sat May 13 18:59:05 2017, ALEENA wrote: Show quoted text
> I've been trying for the last HOUR to chomp the matches in fgrep. It > is impossible until I go to run that hash later in the script. This is > VERY annoying. You need an example of how to get rid of the newlines > in $array[$num]->{matches}. I have been going around in circles. I do > NOT want newlines in the following output: > > $VAR1 = { > '16' => '2 Collections > ', > '26' => '2 Miscellany > ', > '18' => '2 Fandom > ', > '22' => '2 Role playing > ', > '28' => '2 Acknowledgements > ', > '31' => '2 Reciprocated links > ', > '24' => '2 Writing > ', > '20' => '2 Movies > ' > }; > > Please fix this!