Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
my $source = get("www.perlmonks.org"); # for example, can be any domai +n push(@titles, $1) while $source =~ m/<title>(.+)<\/title>/i; print join("\n", @titles);
PS: please don't comment on "Oh he's regexing HTML!". I'm not looking to see why the match doesn't work, just why it's doing an infite loop or whatever is causing my CPU to cry when it's run.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: one line regex eating CPU
by GrandFather (Saint) on Jun 23, 2006 at 20:07 UTC | |
by Anonymous Monk on Jun 23, 2006 at 20:11 UTC | |
by GrandFather (Saint) on Jun 23, 2006 at 20:20 UTC | |
|
Re: one line regex eating CPU
by ikegami (Patriarch) on Jun 23, 2006 at 20:14 UTC | |
by shmem (Chancellor) on Jun 23, 2006 at 20:18 UTC | |
by ikegami (Patriarch) on Jun 23, 2006 at 20:19 UTC | |
by shmem (Chancellor) on Jun 23, 2006 at 20:26 UTC | |
by ikegami (Patriarch) on Jun 23, 2006 at 20:53 UTC | |
|
Re: one line regex eating CPU
by shmem (Chancellor) on Jun 23, 2006 at 20:13 UTC |