in reply to Re: why dosn't my code work?
in thread why dosn't my code work?

Additionally comparing to a fixed text need that value in quotes
if ($value eq "string")

Replies are listed 'Best First'.
Re^3: why dosn't my code work?
by moritz (Cardinal) on Apr 21, 2009 at 11:04 UTC
    While it is correct that one should quote strings, it's by no means required (unless one uses strict, which again is highly recommended).
    $ perl -E 'if (foo eq "foo") { say STDOUT yes } ' yes

    I really don't recommend it, but it does work without quotes.