while ( 1 ) { if ( scalar(<STDIN>) =~ m'<script'i ) { while ( 1 ) { $line = <STDIN>; exit if ($line =~ m'</script'i); print $line; }}}
That's so ugly... I get a headache looking at it. You'll have better luck looking at the module HTML::Parser.
____________________
Jeremy
I didn't believe in evil until I dated it.
In reply to Re: I/O redirection
by jepri
in thread I/O redirection
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |