[ILUG] PERL -> ASP

From: Mark Finlay (sisob at domain eircom.net)
Date: Tue 11 Jun 2002 - 21:39:40 IST


I know most people wont touch ASP with a 10 foot pole,
but I'm stuck trying to modify an asp frontend. It's
designed to allow input into a propriatary database system,
and I have about 20000 items to add so i'd rather input it from
a file.

Can anyone convert this perl to ASP:

#!/usr/bin/perl

$i = 0;
open(SVERSION,"Book1.csv");

while ($line = <SVERSION>)
{

if ($line =~ /^(.+?);(.+?);(.+?)$/)
    {
        $i = $i + 1;
        $var1[$i] = $1;
        $var2[$i] = $2;
        $var3[$i] = $3;

   }

}
close (SVERSION);

It's just a simple program to read a csv file into an array

PLEASE help - save my from RSI

-- 
Mark Finlay
"sisob's linux eXPerience"
http://sisob.dyndns.org
Registered Linux User: #243436


This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:17:12 GMT