in reply to Re: Chopping a file into pieces
in thread Chopping a file into pieces

Yes, quite so (++). One small extra detail: depending on the system in use, one might want to include calls to "binmode()" on the input and output file handles...