in reply to How can I match '$ (literally)

Maybe Ive misunderstood:

$var = "'\$"; print $var, "\n"; print "wahoo\n" if ($var =~ /\'\$/);

I notice your output mentions sql strings, have you tried using the $dbh->quote method? may be the answer to your problems?

Replies are listed 'Best First'.
RE: Re: How can I match '$ (literally)
by Anonymous Monk on Aug 02, 2000 at 15:53 UTC
    Oops. I'm an idiot. I thought it was matching every file but... it wasn't.

    Thanks for your help.