Hi fellows.
I'm open a html file and want to use the upper part only, just above a unique mark (<!-- SEGUNDA COLUNA -->) but I cant get it to work!
This is the html:
<html><head><title>my page</title></head>
<body>
this is my text<br>
and more...
<!-- SEGUNDA COLUNA -->
this is junk<br>
and more junk...
</body></html>
What I did:
open(TEMPL,$feito);
#@linhas = <TEMPL>;
$linhas = <TEMPL>;
@linhas = split(/<!-- SEGUNDA COLUNA -->/,$linhas);
close(TEMPL);
Please help
I'm open a html file and want to use the upper part only, just above a unique mark (<!-- SEGUNDA COLUNA -->) but I cant get it to work!
This is the html:
<html><head><title>my page</title></head>
<body>
this is my text<br>
and more...
<!-- SEGUNDA COLUNA -->
this is junk<br>
and more junk...
</body></html>
What I did:
open(TEMPL,$feito);
#@linhas = <TEMPL>;
$linhas = <TEMPL>;
@linhas = split(/<!-- SEGUNDA COLUNA -->/,$linhas);
close(TEMPL);
Please help