in reply to Re^4: split one file into many on finding a new line
in thread split one file into many on finding a new line

You can also write it as a one-line command:
perl -00ne 'BEGIN { $filename = "MyFileName0000" } { open my $IFILE, " +>", $filename++; print $IFILE $_ }' table1.txt table2.txt tableN.txt


To get a feel of the code, you can run this on its own:

perl -MO=Deparse -00ne 'BEGIN { $filename = "MyFileName0000" } { open +my $IFILE, ">", $filename++; print $IFILE $_ }'