homepage Welcome to WebmasterWorld Guest from 23.22.194.120
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Perl Server Side CGI Scripting
Forum Library, Charter, Moderators: coopster & jatar k & phranque

Perl Server Side CGI Scripting Forum

    
Perl and the Browser
open webpage downloaded using perl in browser
sunswept




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

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




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

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>
~;

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Perl Server Side CGI Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved