Re: Help getting into HTML file.

From: Paul Lalli (plalli_at_gmail.com)
Date: 06/25/04


Date: Fri, 25 Jun 2004 14:32:48 -0400

On Fri, 25 Jun 2004, Jim Simpson wrote:

> I have the following line of code:
>
> <my $response = $ua->post(whatever)>
>
> The $response which is returned contains HTML code and is now printing on
> the DOS screen. How can I get it into an .html file so I can see it on my
> computer screen?

What are you asking? Do you want to print the response to your browser?
Do you want to save the result to a new HTML file on your local computer?

I'm going to assume the latter for now. Somewhere along the way, you must
be printing the response. Rather than printing it to standard output (the
default), open a new file for writing, and print to that file instead.

For documentation on how to do this, see:
perldoc -f open
and
perldoc -f print

After reading that documentation and making an attempt, if you still have
problems, let us know.

Paul Lalli



Relevant Pages

  • Re: Whats the real content type of XHTML?
    ... Is that something in the HTML file itself, ... This response consists of a number of headers followed by the ...
    (alt.html)
  • Re: HTML/Thread Printing
    ... In the main application I am indeed using THTMLViewer to print an HTML ... emailed to them, to have an Excel spreadsheet, a CSV or HTML file created. ... How are you printing an HTML file? ... The VCL is not thread safe, so what I would do is have a separate EXE ...
    (alt.comp.lang.borland-delphi)
  • Re: Recursively scraping web pages for embedded links and files
    ... Tim- thank you again for your response. ... I've managed to get the HTML of a target page ... If you're new to working with HTML docs from Excel then it may be a long ... scrape multiple levels within the directory tree of a website. ...
    (microsoft.public.excel.programming)
  • Re: [opensuse] RFR: Printing From Browsers
    ... Subject: RFR: Printing From Browsers ... I never heard of a browser that prints very well. ... The obvious reason is html just isn't designed for that. ... But that very statement about flowing to fit any window ...
    (SuSE)
  • Re: Dumb Question -- How do you get rid of Spaces in JSP Expression Form Data?
    ... LB Response: Obviously you are correct. ... And yes everybody is correct about HTML validation. ... realPath into the JavaBean class from the calling xxx.jsp file using ... And remember to always escape your output appropriately. ...
    (comp.lang.java.programmer)