try this (untested) - hope it helps!
#!/usr/bin/perl
use CGI::Carp qw(fatalsToBrowser);
use strict;
my $csvfile = "/my_file.txt";
print "Content-Type: text/html\n\n";
open (CSV, "<$csvfile") or die "Can't open $csvfile\n";
while( <CSV> )
{
chomp;
my $line = $_;
if ($line =~ 'open.gif'){
my @cols = split(/;/, $line);
print "Row-1: $cols[0]Row-2: $cols[1]Row-3: $cols[2]\n";
}
}
close CSV
bio-grad
Junior Poster in Training
50 posts since Oct 2010
Reputation Points: 10
Solved Threads: 1