Gossamer Forum
Home : General : Perl Programming :

Extracting title...

Quote Reply
Extracting title...
Eugh, can anyone tell me why this is printing the WHOLE html page for the loop?

if (m,<title>.+?</title>,i) {
chomp;
$title = $_;
$title =~ s,<title>,,;
$title =~ s,</title>,,;
print $title . "<BR>";
}

I've been playing with different options, but none of them seem to work Frown

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread Extracting title... Andy 9025 Oct 5, 2002, 3:31 AM
Thread Re: [Andy] Extracting title...
Paul 8756 Oct 5, 2002, 4:39 AM
Thread Re: [Paul] Extracting title...
Andy 8781 Oct 5, 2002, 5:05 AM
Thread Re: [Andy] Extracting title...
yogi 8763 Oct 5, 2002, 5:20 AM
Thread Re: [yogi] Extracting title...
Andy 8726 Oct 5, 2002, 5:25 AM
Thread Re: [Andy] Extracting title...
yogi 8727 Oct 5, 2002, 5:30 AM
Post Re: [yogi] Extracting title...
Andy 8708 Oct 5, 2002, 5:37 AM
Thread Re: [yogi] Extracting title...
Paul 8736 Oct 5, 2002, 5:34 AM
Thread Re: [Paul] Extracting title...
Andy 8680 Oct 7, 2002, 7:38 AM
Thread Re: [Andy] Extracting title...
Paul 8772 Oct 7, 2002, 7:41 AM
Thread Re: [Paul] Extracting title...
Andy 8700 Oct 7, 2002, 7:48 AM
Post Re: [Andy] Extracting title...
Paul 8761 Oct 7, 2002, 8:05 AM