Home : General : Perl Programming :

General: Perl Programming: Re: [yogi] Extracting title...: Edit Log

Here is the list of edits for this post
Re: [yogi] Extracting title...
I think you can do:

Code:
my $page = get($url);

$page =~ m|<title>(.+?)</title>|i and $title = $1;

Instead of looping twice.

If you were to loop you'd want a last; in there after you found the title.

Last edited by:

Paul: Oct 5, 2002, 5:34 AM

Edit Log: