Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: What is the meaning of this line in Perl on linux?

by LanX (Saint)
on Mar 28, 2022 at 09:31 UTC ( [id://11142458]=note: print w/replies, xml ) Need Help??


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?

> to avoid LTS

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11142458]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-25 05:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found