in reply to I/O redirection
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: I/O redirection
by Anonymous Monk on Jun 03, 2002 at 02:09 UTC | |
|
Re: Re: I/O redirection
by Anonymous Monk on Jun 03, 2002 at 02:37 UTC | |
by jepri (Parson) on Jun 03, 2002 at 03:22 UTC |