Thanks for your answer, marto.
The parsing worked.
But how to "capture the output into a new html file"?
I used the following command:
"perl scriptname.pl inputfile.html > result.html".
In the result.html file that was generated, I added the stylesheet indicated:
<style type="text/css">
.lineNum {
position: absolute;
left: 550px;
}
</style>
But the result.html file didn't show any line numbers.
What may I have done wrong?
P.S. - I've compared the original and the result file, before adding the stylesheet, and they are exactly the same. So the parsing didn't work as it should. |