Hi,
I'm reading data fom a flat file and I want to ignore the first line as it contains the field names.
Here's what I have.
Thank you in advance.
I'm reading data fom a flat file and I want to ignore the first line as it contains the field names.
Here's what I have.
Code:
open(TBL,"file.txt") || die("Can't open file");
my @TblRow=<TBL>;
close(TBL);
foreach my $records (@TblRow) {
chop $record;
my @fields=split(/\|/,$records);
print "<strong>$fields[1]</strong> <br>";
}
Thank you in advance.