in reply to Re: split one file into many on finding a new line
in thread split one file into many on finding a new line
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"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: split one file into many on finding a new line
by kyle (Abbot) on Sep 12, 2008 at 15:20 UTC | |
|
Re^3: split one file into many on finding a new line
by GrandFather (Saint) on Sep 12, 2008 at 21:33 UTC |