in reply to
File handles in regular expressions
Did you forget to
chomp
$comp2
? Lines read from file handles can contain newline characters (usually
\n
).
Sorry if my advice was wrong.
Comment on
Re: File handles in regular expressions
Select
or
Download
Code
In Section
Seekers of Perl Wisdom