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
Download (untitled) / with headers
text/plain 646b
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!
Download (untitled) / with headers
text/plain 837b
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!


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.