M
max
Problem with making Replacement CHR(4) in something.
CHR(9) is "\t"
I use tr///.
What is abbreviation for CHR(4)
Thanks
Max
CHR(9) is "\t"
I use tr///.
What is abbreviation for CHR(4)
Thanks
Max
max said:Problem with making Replacement CHR(4) in something.
CHR(9) is "\t"
I use tr///.
What is abbreviation for CHR(4)
max said:CHR(9) is "\t"
John W. Krahn said:"\t" could also be represented as "\011" or "\x09" or "\cI" so chr( 4 ) could
be represented as "\04" or "\x04" or "\cD".
John
max said:Problem with making Replacement CHR(4) in something.
CHR(9) is "\t"
I use tr///.
What is abbreviation for CHR(4)
max said: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).
Ben Morrow said:Quoth (e-mail address removed):max said: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.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.