I don't know how detailed you wanna get with this, but the following will
return the line in the text file with the address.
-------------snip--------------------------
#!/usr/bin/perl -w
use strict;
while (<>) {
open (FILE, "some_file_name");
print if /@/;
}
close FILE;
-------------snip--------------------------
You can run the above code like a UNIX command-line program like:
./my_program some_file_name
This is just a general suggestion. You should embellish to suit your needs.
Ron
>From: "Arthur Perley" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Subject: Capture an email address from a text file
>Date: Tue, 4 Sep 2001 12:15:01 -0400
>
>Hello, I need some suggestions regarding stripping email addresses from
>returned email messages. The addresses are embedded in text files (the
>email
>message) without any consistent delimiters (e.g. < or :). These aren't the
>"From:" addresses, since that is usually something like
>[EMAIL PROTECTED] but more like "user [EMAIL PROTECTED] not found" or
>some such embedded in the message.
>
>Thanks in advance
>
>
>
>--
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]