[EMAIL PROTECTED] (Denham Eva) wrote in
news:[EMAIL PROTECTED]:
> Hello Gurus,
> In a script I have a piece of code as such:-
> * snip**
> my $filedate =~ s/(\d+)//g;
> * snip end ***
> The data I am parsing looks as such :-
> ** DATA
>
Joe,
If you are using fh1 more than 1x in the code, and it's not explicitly
closed with each use, you will start at the last line number of the
previous file or across files. I had a tendency to reuse file handles,
relying on perl's implicit close, and ran into the above.
The code snippet loo