#!/usr/bin/perl -w use strict; use CGI qw(:standard); print header(); my $data = 'sample.db'; open (PAGE, $data) or die "Can't open $data: $!"; while (my $line = <PAGE>) { my @columns = split "\t", $line; if ($columns[2]) { print "three = $columns[2]<br>"; print "four = $columns[3]<br>"; } }
In reply to Re: extracting a list from a file
by perlguy
in thread extracting a list from a file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |