in reply to Re: split a file to several smaller file
in thread split a file to several smaller file

Hi, I have error when i run this.. could you give me more information as in what is $base and $ext? sorry.. i'm new to perl.. thanks!
  • Comment on Re^2: split a file to several smaller file

Replies are listed 'Best First'.
Re^3: split a file to several smaller file
by chromatic (Archbishop) on Dec 24, 2007 at 03:07 UTC

    $base is the base name of all of the files, such as the log part of log001.txt, log002.txt, and log003.txt. $ext is the file extension, or txt in the example here.

      thanks.. and what is $fh_out? $fh_in is the text file it is reading right? Now there is no errors but I am not spawning any files.. there is no output..