Please have regard to these points: [
- When you reply to a post, do so AFTER the text you are quoting.
- Choose an APPROPRIATE subject line.
- Try to explain PRECISELY what it is you are trying to do.
- Try to work it out for yourself first, and give some indication
that you have done this.
- Don't quote .sigs
]
[Jeopardy response fixed]
Thus spake Jason Wong on Mon, 29 Jan 2001 15:00:55 -0500:
Quote:
>> > Subject: simple, simple question
>> We read this as "I am selfish and lazy - please flame me".
[snip reason why this is the case]
Quote:
>> > How to load a website in cgi script
>> Do you perhps mean "fetch a document from a website in a Perl script"?
>> LWP
>ok...
>my script edited a webpage
>i just wanna find a Perl function like
>load(url)
>so as to bring up that updated page directly, instead of making another
>hyperlink
OK -- what you mean is something like this: You have a CGI program written
in Perl which has generated HTML, in which you wish to include another web
page, not as a reference, but as part of the generated page.
You have probably already investigated the HTML options for this?
Framesets? This side of the question is not related to Perl.
You have also probably already read some of the Perl documentation related
to CGI programming, such as the manual for the CGI module? You have
searched the documentation that is installed along with Perl on your
computer? What you will have surmised from this is that you need to a)
fetch the HTML document from the other web server, and b) include this HTML
in the HTML you pass to your web server via CGI.
In that case, nobull has already answered your question. You should look at
the documentation for the LWP module, which is in the standard
distribution. Go to a command prompt and type 'perldoc LWP'.
Cheers,
Damian
--
#requires 5.6.0 ## my first attempt at one of these...
$;=ord$%,$:=$;-ord q,.,,$_=q,3346:3366:3276:3326:3386:546:566:966:3396:3376:,.
q,3386:546:;96:3326:3336:3386:3266:3236:3366:546::26:3236:3366:32:6:546:3266,.
q,:;96:;;6:3296:3236:3366:326:56,,s,.,ord($&)-$;-$:,eg,s,$;,chr$&-$:,eg,
eval eval;