M
me
First I thought I was crazy, then I tested this, seems to work
differently:
$teststr = " <P>A J SERVICES LIMITED</FONT></P></TD>";
But when I read this in from a file:
sysopen(FH, $default_input_file, O_RDONLY) or
die "sysopen failed: $!\n";
while ($read_buf = readline(FH)) {
# parse the field value out of the entire string
$ret_val = index($read_buf, "<P>");
THEN:
$ret_val = 1
What causes this to be different?? I thought it was because of leading
spaces but I also tried to use "\<P\>" and "A J SERVICES" but the index
value is always 1.
thanks for your thoughts
differently:
$teststr = " <P>A J SERVICES LIMITED</FONT></P></TD>";
position is 12
But when I read this in from a file:
sysopen(FH, $default_input_file, O_RDONLY) or
die "sysopen failed: $!\n";
while ($read_buf = readline(FH)) {
# parse the field value out of the entire string
$ret_val = index($read_buf, "<P>");
THEN:
$ret_val = 1
What causes this to be different?? I thought it was because of leading
spaces but I also tried to use "\<P\>" and "A J SERVICES" but the index
value is always 1.
thanks for your thoughts