I am a total newbie in perl
I have a html file with some junk after </html?
So I am trying to clean it.
This is how I started out. Its inside a unix shell script so I must
test on a command line like this:
% cat file.html | perl -ne '{$/="</HTML>" ; if ($_ =~ m#</html>#i)
{ print $_ } }'
OK I wrote it by imitating other examples.
I dont know why I use switch -n . These are not described in man perl.
It only lists all switches in syntax line.
It always miss the top line.
I am sure you have many variants of this to teach this dumb newbie.
gnuist
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/