in reply to Comparing Strings
Welcome
Its a basic trap/pitfall, you forgot to chomp or trim trailing input record separator. Its beter to trim trailing whitespace ( see trim leading & trailing whitespace )
See also
Common Perl Pitfalls / perltrap
Tutorials: Basic debugging checklist , brian's Guide to Solving Any Perl Problem
perlintro, http://learn.perl.org/books/beginning-perl/, http://perl-tutorial.org/, Tutorials: Basic debugging checklist , brian's Guide to Solving Any Perl Problem, Modern Perl book, a loose description of how experienced and effective Perl 5 programmers work....You can learn this too.
The Perl Monks Guide to the Monastery
|
|---|