Re: FN-FORUM Perl Loop
date posted 18th January 2003 17:00
Hi John,
[snip]
> so it reads reads from a file (number.txt) into a variable at position
> (number+1)
>
> any help??????
Something like this should do it:
$path = "/home/sites/www.dlharbour.ie/web/dlharbour_data/pressure_24/";
for ($count = 0; $count < 24; $count++) {
$filename = $path . $count . ".txt";
open(INFILE, $filename) or die "can't open PRESSURE";
$pressure[$count + 1] = ;
}
Regards,
Steve
--
================================
Steve Webster
Freelance Web Developer
[EMAIL REMOVED]
PHP, MySQL, Flash, Perl + more
http://www.codejunkie.co.uk
================================