Welcome to the Monastery | |
PerlMonks |
Re: Is there a Limit on Matching .*by nysus (Parson) |
on Jul 15, 2003 at 00:12 UTC ( [id://274236]=note: print w/replies, xml ) | Need Help?? |
I believe the answer to your question is that that '.' is not matching over newlines. You must use the 's' modifier like so: $chunk =~ m%<title>(.+)</title>.*<h1>(.+)</h1>%is;
Update: Removed first paragraph may have been wrong.
$PM = "Perl Monk's";
In Section
Seekers of Perl Wisdom
|
|