in reply to Re: Substring comparisson problem
in thread Substring comparisson problem

Thank you! That was it. After your reply, I went back and double-checked the book I am using for a reference (an older book on Perl 5) and it included the double quotes - exactly as I had typed the line. My trust in the rest of the material in that book has just diminished. Will have to look for a better/newer book. Thanks again for the prompt and complete reply!

Replies are listed 'Best First'.
Re^3: Substring comparisson problem
by ww (Archbishop) on Nov 27, 2013 at 22:19 UTC
    Not that having a newer, shinier book is not nice, but if $$$ count, do two things before diminution of trust is a absolute reason to buy a new one:
    1. Check in internet (publisher's site) for a listing of errata. Good books tend to have them. Reliable publishers tend to post them.
    2. Check the head section for an explanation of any formatting conventions. Granted, what you've quoted sounds pretty-non-standard and confusing, well-edited books on any programming language tend to have a set of conventions that are explained "up front" (for some somewhat variable value of "up front") and then used without further ado.

    And if/when you do go looking for a new book, I recommend that you search first, foremost, and likely last at O'Reilly and Apress. Not all publishers of texts on Perl can/do provide reference or tutorials that come even close, although you may want to search this site for some recommended sources -- in print and online.

    Jumping to conclusions is poor exercise!

      I would also definitely recommend O'Reilly, you'll be sure to have books written by some of the best experts.