in reply to Opening files, comparing strings. Should be simple!?
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:substr($_,0,25);
Can't tell whether you're using "strict" from your post (the variable $probe indicates not).$probe = substr($_,0,25);
|
|---|
| 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 |