in reply to split a file to several smaller file

If you're using *nix, I'd suggest you do a man split, and bypass Perl.
  • Comment on Re: split a file to several smaller file