Re: Help getting into HTML file.
From: Paul Lalli (plalli_at_gmail.com)
Date: 06/25/04
- Next message: Gunnar Hjalmarsson: "Re: Help getting into HTML file."
- Previous message: Purl Gurl: "Re: Posting Guidelines for comp.lang.perl.misc ($Revision: 1.5 $)"
- In reply to: Jim Simpson: "Help getting into HTML file."
- Next in thread: Gunnar Hjalmarsson: "Re: Help getting into HTML file."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Gunnar Hjalmarsson: "Re: Help getting into HTML file."
- Previous message: Purl Gurl: "Re: Posting Guidelines for comp.lang.perl.misc ($Revision: 1.5 $)"
- In reply to: Jim Simpson: "Help getting into HTML file."
- Next in thread: Gunnar Hjalmarsson: "Re: Help getting into HTML file."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|