Quoth
:
> "max" <> wrote:
> > Problem with making Replacement CHR(4) in something.
> > CHR(9) is "\t"
> > I use tr///.
> > What is abbreviation for CHR(4)
>
>
> $ perl -le 'use Data:
umper; $Data:
umper::Useqq=1; \
> print Dumper [chr(4), chr(9)];'
> $VAR1 = [
> "\4",
> "\t"
> ];
>
>
> It looks like "\4" is a good abbreviation, but I imagine it wouldn't
> work if followed by a digit (in which case Dumper uses "\004" instead).
"\4" is unreliable under some circumstances: notably, in a pattern (or
the RHS of s///), if $4 exists then \4 is assumed to refer to that
rather than chr(4). "\04" is safer.
Ben
--
"Faith has you at a disadvantage, Buffy."
"'Cause I'm not crazy, or 'cause I don't kill people?"
"Both, actually."
[]