in reply to Re^2: slashes in single-quoted string
in thread slashes in single-quoted string
I mean by using an alternate delimiter like q{} or q// the problem is just postponed.
DB<105> print q{\}} }
Then the only possibility left would be concatenating with a constant representing the delimiter:
eval( '$string=' . QUOTE . 'abc' . QUOTE );
instead of eval( '$string=\'abc\'' );
Possible ... but desirable?
Cheers Rolf
UPDATE: or eval( '$string=' . q{'} . 'abc' . q{'} );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: slashes in single-quoted string
by Eliya (Vicar) on Apr 29, 2011 at 22:59 UTC |