in reply to Re: What is the meaning of this line in Perl on linux?
in thread What is the meaning of this line in Perl on linux?
I learned the term slasheritis in (emacs) lisp, which doesn't know raw strings. So since all regexes are strings you have to type \\\\ to escape a single backslash from two levels of interpretation. That's even worse than in Perl.
The discussion of other programming languages in this WP page looks incomplete to me, because it doesn't always handle the question how to escape the delimiter of a raw string.
Like this Ruby code
> 'C:\Foo\Bar.txt'
won't have any possibility to escape the ' , because \ isn't meta anymore.
While Go discussed this limitation
> there is no escape code for a backtick in a raw string.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
---|