I think your almost completed. For the statement ' print $line;' show the record in the command line only. Insist of you print the file handler that affect the file.
So change the below line in to your code.
print OUT $line;
In reply to Re^3: split a file
by k_manimuthu
in thread split a file
by chinni2010
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |