in reply to finding emails
while ( <FIN>) { while ( s#first_expression#do_something#eg ){ $hashed{$var++}; } #more loops here }
This way the loop will continue while there exists anything else in the text that matches the regular expression.
Update:Another thing I was thinking of is you could split the stuff in the line into "words" and then run the expressions against each "word", as I will assume that each of your emails is seperated by something or other (be it a space, or something else), and then you won't have the problem of the second e-mail not matching as each "word" will at most have one e-mail in it.
-enlil
|
|---|