I've seen a piece of perl code like this:
My questions are
1) What does \xB8 mean?
2) I'd guess this has something to do with a newline break. But why should it be treated this way?
3) Could someone recommend a web site that explains the meanings of all these special characters, such as '\xB8', '\xB9', etc?
4) Lastly, is '\xB8' the same as '\xb8'?
Thank you for your help.
Code:
# $myfile is a ascii file
open TSCRIPTFILE, "$myfile" || die;
local $/ = "\f";
# ......
while (<TSCRIPTFILE>) {
chomp;
$_ =~ s/\xB8/\n\xB8/g;
#......
}
close(TSCRIPTFILE);
exit;
My questions are
1) What does \xB8 mean?
2) I'd guess this has something to do with a newline break. But why should it be treated this way?
3) Could someone recommend a web site that explains the meanings of all these special characters, such as '\xB8', '\xB9', etc?
4) Lastly, is '\xB8' the same as '\xb8'?
Thank you for your help.