in reply to Re^2: What is the meaning of this line in Perl on linux?
in thread What is the meaning of this line in Perl on linux?
No. The above line is a syntax error and Perl tells you so.
Maybe you want to learn about Perl quoting rules for strings? The backslash \ is special in Perl strings and is used to mark the next character as exempt from the quoting rules. See Quote-and-Quote-like-Operators, especially the section about Escape Sequences. There it explains why you need to write \\ when you want to match a single \ in a regular expression.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: What is the meaning of this line in Perl on linux?
by haukex (Archbishop) on Mar 28, 2022 at 08:32 UTC | |
Re^4: What is the meaning of this line in Perl on linux?
by Anonymous Monk on Mar 28, 2022 at 08:32 UTC | |
by Corion (Patriarch) on Mar 28, 2022 at 08:33 UTC | |
by Anonymous Monk on Mar 28, 2022 at 08:49 UTC | |
by Corion (Patriarch) on Mar 28, 2022 at 09:02 UTC |