Re: call HTML page from PERL



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

.



Relevant Pages

  • Cant make this page work
    ... I can't make this script work properly. ... The script at the bottom of the html page ... Does someone have a perl ... sub output_trace_headers { ...
    (comp.lang.javascript)
  • Re: Use with Action "Send Reply" Dont Go
    ... Set Up an HTML Signature ... Go to Tools/Signatures in Entourage, ... "Auto-Reply HTML" or something similar. ... script in the Entourage Script Menu Items folder. ...
    (microsoft.public.mac.office.entourage)
  • Validating to a higher 4.01 standard (long)
    ... The next step is to copy these HTML documents to a new directory (so you do ... onmousedown %Script; #IMPLIED ... datafld CDATA #IMPLIED ... href %URI; #IMPLIED ...
    (alt.html)
  • Posting & Help REQ - Active Directory Reporting Script - pls help add to it
    ... I started writing a script to make a basic HTML report of my active ... ' This code prints out a list of global catalogs for the forest ... Function DisplayDomains (strDomain, strSpaces, dicDomainHierachy) ...
    (microsoft.public.scripting.vbscript)
  • Re: Twee Cheerz fur Unka Dan!
    ... Finish the script that will allow review and selection of messages ... Write a script to convert special characters to HTML entities (half ... Fangu! ...
    (rec.pets.cats.community)