Re: call HTML page from PERL
- From: "Paul Lalli" <mritty@xxxxxxxxx>
- Date: 27 Sep 2006 05:04:33 -0700
sunilsushil@xxxxxxxxx wrote:
i have been writing program for file manupulation. by opening
, reading and appending..
i have a problem .
how can i call or open an HTML page from my script.
e.g my file : login.html
how to call this html page from my perl script..
That is non-sensical. What do you mean by "call" an html page. An
html page is not a program, and is not executed. It is pure text
(albeit in a special markup language, generally interpreted by web
browsers).
If you want to open the file for reading, you simply use the open
function, as described in
perldoc -f open
open my $html_fh, '<', 'login.html' or die "Cannot open login.html:
$!";
while (my $line = <$html_fh>) {
print "Line $. : $line";
}
If you want to do something else, you'll have to better describe your
goal, using terms that make sense.
Paul Lalli
.
- Follow-Ups:
- Re: call HTML page from PERL
- From: sunilsushil
- Re: call HTML page from PERL
- References:
- call HTML page from PERL
- From: sunilsushil
- call HTML page from PERL
- Prev by Date: call HTML page from PERL
- Next by Date: Retain Spaces in field value
- Previous by thread: call HTML page from PERL
- Next by thread: Re: call HTML page from PERL
- Index(es):
Relevant Pages
|