in reply to Re: literal meaning of a variable
in thread literal meaning of a variable

Except !~ is a binary operator. Perhaps you meant:

... next if !/$find/; next if !/$date/; ...

Though I would be tempted to instead use:

... next unless /$find/; next unless /$date/; ...

Replies are listed 'Best First'.
Re^3: literal meaning of a variable
by McDarren (Abbot) on Feb 27, 2006 at 06:32 UTC
    Except !~ is a binary operator.

    heh... well, I did say it was untested :)
    What I meant was: next if ($_ !~ /$find/);
    Although I guess in that context it's essentially the same as: next if !/$find/; yes?

    Ever since I read TheDamian's PBP, I tend to try and avoid unless :)