in reply to Re: C style strings
in thread C style strings
G'day jwkrahn,
The following is just a point of clarification; it's not intended as a correction.
"Which are the same in Perl except for \v which Perl doesn't use."
Actually, Perl does use \v; you can't use it to insert a VT, but you can use it to detect one. See "perlrebackslash: All the sequences and escapes":
... \v Match any vertical whitespace character. ...
This was introduced in Perl v5.10: "perl5100delta: Vertical and horizontal whitespace, and linebreak".
I don't know for certain, but I imagine this is unavailable in the "TinyPerl 5.8" being used by the OP.
$ perl -we 'print "abc\vdef\n"' Unrecognized escape \v passed through at -e line 1. abcvdef $ perl -we 'print "abc\x{0b}def\n"' abc def
— Ken
|
|---|