in reply to Opening files, comparing strings. Should be simple!?

Besides what has been pointed out, the following:
substr($_,0,25);
doesn't do anything unless you assign it to something else. I assume you're trying to extract the first 25 characters from each line, then you want:
$probe = substr($_,0,25);
Can't tell whether you're using "strict" from your post (the variable $probe indicates not).

Replies are listed 'Best First'.
Re^2: Opening files, comparing strings. Should be simple!?
by PD (Initiate) on Jan 04, 2005 at 18:42 UTC
    I had fixed this but forgot to correct it in my question. Thank you ... anyway.