azaria has asked for the wisdom of the Perl Monks concerning the following question:

Hello I want to write a code that split a given huge file pieces of files, each file's size depends on the user input. Any idea ? Have a great day azaria

Replies are listed 'Best First'.
Re: File pieces
by citromatik (Curate) on Apr 29, 2008 at 16:23 UTC

    I have never used it, but File::Split should do what you are looking for

    citromatik

Re: File pieces
by apl (Monsignor) on Apr 29, 2008 at 16:29 UTC
    If you're using *nix, don't reinvent the wheel. Take a look at the split utility.
Re: File pieces
by toolic (Bishop) on Apr 29, 2008 at 16:29 UTC
    If you are on *nix, there is the split command:
    man split
      I am running on windows OS unless I could use the Unix system command split. Do you know if there is any parallel dos command (which i don't beleive) Thanks and waiting for any other codes examples azaria
        Check out Cygwin, for me it's a first addition on any new windows box.
Re: File pieces
by ig (Vicar) on Apr 30, 2008 at 15:56 UTC
    You might find the GnuWin32 tools helpful. This includes split and csplit in CoreUtils.