Problems? Is your data what you think it is? | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Why would ' vs " make a difference? \\ is used as an escape character for both. In single quote string literals, "\\" is interpreted as "\", "\'" is interpreted as "'", and everything else is left as is. In double quoted string literals, "\\" is interpreted as "\", "\"" is interpreted as """, ... Is there a way to make perl think the data came from a stream? No. That makes no sense. The script doesn't know whether the data came from a stream or not. The conversion happens during the parsing of the script by the Perl parser. If it didn't do this, you would have no way of specifying certain strings, such as the one containing solely \. In reply to Re^3: Escaping multiple escape chars
by ikegami
|
|