my $parts = shift; ### how many parts to split my @file = @ARGV; ### the files to split #### ./yourscript.pl 10 file_to_split #### perl yourscript.pl 10 file_to_split