J
Jack
Hi
I have "decimal 28 nonprintables" in my file as delimiters, this I
know.
How do I match to it ? I tried the following and they dont seem to be
detecting - any ideas ?
if ($_ =~ m/\028/) { print " a "; }
if ($_ =~ m/028/) { print " 0 "; }
if ($_ =~ m/28/) { print " 1 "; }
if ($_ =~ m/-d '\028'/) { print " 2 ";}
Also, does someone know how to detect newlines (carriage returns) as
the first character in a string (in this case a variable where I read
in a file record... I tried the below and it too is not detecting !
if ($newline =~ m/^\n/) { print " newline " ; }
Many Thanks,
Jack
I have "decimal 28 nonprintables" in my file as delimiters, this I
know.
How do I match to it ? I tried the following and they dont seem to be
detecting - any ideas ?
if ($_ =~ m/\028/) { print " a "; }
if ($_ =~ m/028/) { print " 0 "; }
if ($_ =~ m/28/) { print " 1 "; }
if ($_ =~ m/-d '\028'/) { print " 2 ";}
Also, does someone know how to detect newlines (carriage returns) as
the first character in a string (in this case a variable where I read
in a file record... I tried the below and it too is not detecting !
if ($newline =~ m/^\n/) { print " newline " ; }
Many Thanks,
Jack