in reply to I need to prevent Perl from interpreting Strings

Maybe you're doing something like this:

$email = "name@location.ext";

And only then you're inserting the contents of $email in the database. If so, @location will be interpreted, yes.

Ways to work around this:

The first one escapes the "@" sign, while the second one prevents variables from being interpreted inside the string.

The third one is just a proof that there is always another way... :-)

HTH

Replies are listed 'Best First'.
Re^2: I need to prevent Perl from interpreting Strings
by renz (Scribe) on Feb 10, 2005 at 17:36 UTC

    Dont forget: my $email = "name\x40location.ext";

    /renz.
    "Are you merely the spirit of these/ Bones that shelter me?"
    --Dax Riggs, Dressed Up In Smoke.