Welcome to WebmasterWorld Guest from 54.226.246.160

Forum Moderators: coopster & jatar k & phranque

Message Too Old, No Replies

Perl and the Browser

open webpage downloaded using perl in browser

     

sunswept

10:49 pm on Apr 22, 2007 (gmt 0)

5+ Year Member



I am using the www::mechanize::shell module to automate some work on my sites. I am able to fill forms, get the pages, store them etc.
But sometimes I need to see the downloaded pages in browser immediately after they are downloaded (conditions for such display are known, so has to be made autoatic). The said module documentation recommends use of HTML::display module for such things.
The problem is i am working with active state perl on windows and the HTML::display module is not available for the platform (checked using ppm and searched activestate site).

Is there some other module that can help in displaying downloaded html pages in a browser (firefox preferably). I might have to strip content from several pages and view it as a single generated html page, is there a way to render html bits generated by my script (or www::mechanize functions) in a browser.
Thanks

perl_diver

2:32 am on Apr 23, 2007 (gmt 0)

5+ Year Member



all you have to do is wrap the data in some html code:

print qq~Content-type: text/html\n\n
<head>
<body>
your data here
</body>
</html>
~;

 

Featured Threads

Hot Threads This Week

Hot Threads This Month