Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • by tilly (733) on 2000.08.03 7:02 (#666)
    If you want that then q/'/ works perfectly fine for having a single-quoted construct that embeds a single quote. It seems to me to be worse to drop \\\\ into a Perl string right now. (Something that strings which are about to be interpolated by several other programs frequently must do.) Also there is a principle of least surprise. I far prefer explaining "single-quoted strings appear literally" than I do explaining "well they are sometimes literal and sometimes not." This is a personal annoyance though, I still remember finding out what \' did in a single-quoted string the hard way. (Trying to build up a DOS filename.) Cheers, Ben