Re: Reading lines from a file

2002-04-03 Thread John W. Krahn
Mark Anderson wrote: > > #open FILE or die... > my $location = ; > my $format = ; > my $cost = ; > my $start = ; > my $runby = ; > my $prize = ; > > now you have each of the 6 lines in its own variable. You can then use the > variables to lay out your HTML. And of course you can put it all on

RE: Reading lines from a file

2002-04-03 Thread Mark Anderson
: Wednesday, April 03, 2002 1:26 PM To: [EMAIL PROTECTED] Subject: RE: Reading lines from a file I have a six line file with base data in. I am trying to use that data to create HTML code. Data looks like LOCATION FORMAT COST START TIME RUN BY PRIZE When I create the HTML some of these will be

RE: Reading lines from a file

2002-04-03 Thread Glenn Cannon
into the correct part of the HTML. -Original Message- From: Mark Anderson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 03, 2002 4:22 PM To: Glenn Cannon; [EMAIL PROTECTED] Subject: RE: Reading lines from a file Specific by line number? specific by text in the line? specific as line

RE: Reading lines from a file

2002-04-03 Thread Mark Anderson
Specific by line number? specific by text in the line? specific as line-by-line? Please be more specific. :) To read line $x of FILE into $line: foreach 2..$x; $line = reads in the next line of the file. Hope this helps, /\/\ark -Ori