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
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
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
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