At 19.35 -0500 1999.01.27, kevin dowd wrote: >Anyway. PERL 5.02 G3Mac. 1. It is Perl or MacPerl or perl, never PERL. 2. Please install MacPerl 5.2.0r4. >$myEmail = 'dowd%40ndirect.co.uk'; >$myEmail = ~ s/%40/@/g; >print "$myEmail"; > >All I get back is 4294967295. > >I want to replace the %40 with a @. > >But I'd like to know what the 4294967295 is - for next time =~ is not the same as = ~. Use -w, it will tell you when you make a mistake like this. In this case, the warning it produces will not be extremely helpful, but it will let you know something is wrong. Also, do not print scalars in quotes unless you have to. It is slower, it is unncessary, and it is sometimes wrong (though rarely). Here is a proper version of your snippet: #!perl -w $myEmail = 'dowd%40ndirect.co.uk'; $myEmail =~ s/%40/@/g; print $myEmail; -- Chris Nandor mailto:pudge@pobox.com http://pudge.net/ %PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10 1FF77F13 8180B6B6']) ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch