It doesn't work however.It just exits.Please help.#!/sw/perl5/1.1/bin/perl use lib ("/fbcapps/buc/perl_lib"); use strict; my $filename = "/home/smarter/alltables"; local $/ = ""; while (<DATA>) { chomp; ++$filename; print "**** Open file $filename here\n"; print "$_\n"; print "**** Close file $filename here\n"; }
In reply to Re^2: split one file into many on finding a new line
by smarter_aries
in thread split one file into many on finding a new line
by smarter_aries
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |