From: "Brett W. McCoy" <[EMAIL PROTECTED]>
> On Wed, 12 Dec 2001, Johnson, Shaunn wrote:
> 
> > --i know.  i *know* i must be doing something goofy.
> 
> 
> > #$addr=`cat /tmp/email_users.txt`;
> > $addr='[EMAIL PROTECTED]';
>                  ^
> > $addr_frm='[EMAIL PROTECTED]';
>                   ^
> You need to escape the @ with \ here
> 
> -- Brett

No he does not!
You don't have to escape @s and $s in a singlequoted string.
If you do your backslash will end up in the result .... most probably 
not what you want.

        print 'foo@bar',"\n";
        print 'foo\@bar',"\n";

The Johnson's code looks OK. Except I would never use :

        $var = `cat $filename`;

I'd use 

        use FileHandle;
        ...
        {
                local $/;
                my $IN;
                open $IN, $filename or die "Can't open $filename : $!";
                $var = <$IN>;
                close $IN;
        }

it's longer, but safer and quicker.

Jenda


=========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ==========
There is a reason for living. There must be. I've seen it somewhere.
It's just that in the mess on my table ... and in my brain.
I can't find it.
                                        --- me

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to