Z
ZMAN
Hello all!
Reading in lines from a file.
I want to ignore all the text before it gets to the line
"<!--document_starts_here-->"
and write out the remainder of the text to a file.
This is the way I'm attempting this..
Thanks in advance!
BZ
open DATAOUT, ">$data_file" or die "can't open $data_file $!";
foreach $line (@lines)
{
if ($line =~ m/<!--document_starts_here-->/i)
{
print "This line contains the word : $line\n";
#### write remainder of file out
}
print DATAOUT "$line";
}
close (DATAOUT)
Reading in lines from a file.
I want to ignore all the text before it gets to the line
"<!--document_starts_here-->"
and write out the remainder of the text to a file.
This is the way I'm attempting this..
Thanks in advance!
BZ
open DATAOUT, ">$data_file" or die "can't open $data_file $!";
foreach $line (@lines)
{
if ($line =~ m/<!--document_starts_here-->/i)
{
print "This line contains the word : $line\n";
#### write remainder of file out
}
print DATAOUT "$line";
}
close (DATAOUT)