in reply to dynamic filenames, indirect filehandles

IMHO, I'm not sure what you're trying to achieve here, but here are a few pointers:



Update:Use split;

Cheers,
Rupesh.

Replies are listed 'Best First'.
Re^2: dynamic filenames, indirect filehandles
by jjohhn (Scribe) on May 19, 2005 at 04:19 UTC
    Thanks rupesh
    I don't mean to append the filehandle, I mean to append the name ("path") of the file. Incrementing the name is just what I want to achieve. This is the core of my question: For a 20,000 line $readfile, I want to produce 20 separate $outfiles, files, named (for example) "outa", "outb", etc.
Re^2: dynamic filenames, indirect filehandles
by TheStudent (Scribe) on May 19, 2005 at 04:33 UTC
    Why are you appending a file handle ($outfile)with $sl ?

    So that he can say $outfile++ and generate unique file names for each split file.

    Lou