in reply to Gimmie the Stuff Between Two Keywords

I use Win32 also and screwed with this for almost an hour before just trying to print the $text variable out. The output was everything minus "@mail", surely it's not going to find @mail.cp. I don't know how you are putting the information into the text variable, I assume you are using LWP::Simple and trying to fetch email address' from the web. I uploaded a page with some text similar to yours and used this script to retrieve it. Try it out, I will leave the page up for awhile. Hope this helps you. Mosley
use LWP::Simple; print "Content-type: text/html\n\n"; $URL = "http://www.weedlinks.f2s.com/joeblow.html"; $page = get($URL); $page =~ s/\s+/ /g; @text = split(/\s/, $page); foreach $line (@text) { if ($line =~ /\@/) { @line = split(/\@/, $line); print "@line[0]<br>"; # If you just want to collect whole email address'. # Un (#) the next line. #print "$line<br>"; # Or print to a database. Un (#) the next 3 lines. #open (DATABASE,">>joeblow.txt"); #print DATABASE "$line\n"; #close (DATABASE); } }