J
Jürgen Exner
jbauza said:That statement does not work. I only worked when I used & # 0 6 4
instead of the @ sign.
I have no idea what statement didn't work because you didn't quote any
context.
But to answer you question in the Subject line:
C:\tmp>type t.pl
use strict; use warnings;
my $var = 'foo@bar';
print "Before: $var\n";
$var =~ s/\@/\\@/;
print "After: $var\n";
C:\tmp>t.pl
Before: foo@bar
After: foo\@bar
jue