John wrote:
I realised that the @ cannot enter in a string without escape characters. Is that equivalent to "

That's not quite true. Within double quotes, anything that looks like a variable is interpreted as a variable. So, 'print "@"' is perfectly fine. It does not look like a variable because '@' is not followed by a valid variable name. But in 'print "@at"', the '@' is interpreted as part of the variable '@at'. You can use a backslash ('print "[EMAIL PROTECTED]"') to escape or use single quotes ('print '@at'') to prevent the interpolation.


Regards,
Randy.

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to