in reply to Re: Re^2: If I Want Backslashes, I'll Ask For Backslashes
in thread If I Want Backslashes, I'll Ask For Backslashes
Of course, the last example would probably strike many a C programmer as being far too bizarre to comprehend.$_ = '\\something'; # \\something $_ = 'It\'s a tragedy'; # It's a tragedy $_ = '\\''; # \'
Update:$_ = q[\\something]; # \\something $_ = q[It's a tragedy]; # It's a tragedy $_ = q[\']; # \'
',\,\','That is to say, that this is really a single quote, followed by a single backslash, followed by the token \', followed by a single quote.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re^4: If I Want Backslashes, I'll Ask For Backslashes
by John M. Dlugosz (Monsignor) on Aug 11, 2001 at 07:02 UTC |