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!