in reply to Re: Splitting long file
in thread Splitting long file

Perl is smart enough to close the old file when you open another file on the same filehandle, therefore this isn't a problem.

Replies are listed 'Best First'.
Re: Re: Re: Splitting long file
by eXile (Priest) on Apr 08, 2004 at 16:37 UTC
    then I've learned something from this thread as well. Thanks tilly!
      It would be a problem in my solution below if I did not have the 'close' statement.