I'm trying to modify cookbook example 6-2:

#killtags: very bad html tag killer
undef $/;
while(<>){
        s/<.*?>//gs;
        print;
}

to instead look for all "href=" in an html file across paragraphs/newlines
but I only get the first successful match.  why does the cookbook's work but
not mine?

undef $/;
while(<>){
        /href="(.*?)"/gs;
        print "$1\n";
}

TIA,

-- drew cohan
beginner perl enthusiast

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to