RE: counting in CGI - any pointers?

2001-07-25 Thread Benjamin Drury Huyck
Adam, You could add a line to your script that adds the extracted number to a variable (like $total). Just add: ... $inline = ; chomp $inline; @line = split (" " , $inline); $total += $line[0] unless($line[0] =~ m/[^\d]/); #added print <<"EOF"; ... You can omit the unless statement if you are p

RE: counting in CGI - any pointers?

2001-07-25 Thread Moon, John
ed by its size: exactly like this: johnw/ 123 adamp/ 345 pault/ 2345 miket/ 567 and so on, there are about 500 web sites. Kind Regards Adam McGregor [EMAIL PROTECTED] Affinity Internet (Pty) Ltd -Original Message- From: Moon, John [mailto:[EMAIL PROTECTED]] Sent: 24 July 2001 05

RE: counting in CGI - any pointers?

2001-07-25 Thread Adam Mc Gregor
sites. Kind Regards Adam McGregor [EMAIL PROTECTED] Affinity Internet (Pty) Ltd -Original Message- From: Moon, John [mailto:[EMAIL PROTECTED]] Sent: 24 July 2001 05:36 To: [EMAIL PROTECTED] Subject: RE: counting in CGI - any pointers? One Line of data has *foo* and anothe

RE: counting in CGI - any pointers?

2001-07-24 Thread Moon, John
One Line of data has *foo* and another has *3* and ... OR *foo 3 bleed 45 blee 56 stuff 67 * ? If it's the second can *stuff* = *stuff more stuff then still more stuff* ? Is the record *fixed* or *typed* ? -Original Message- From: Adam Mc Gregor [mailto:[EMAIL PROTECTED]] Sent: Ju