Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

perl script to push data to a web page?

Status
Not open for further replies.

dabits

Programmer
Apr 28, 2000
18
US
Hi All!<br><br>Any ideas on how to create a perl script to push data to a web page? What I need to do is create a perl script which updates a web page while the page is displayed. BTW, does anyone know if XML can do this?<br><br>Thanks!!
 
I have not played with it yet, but the CGI.pm module has a server-push example which refreshes a clock display in a browser.&nbsp;&nbsp;You might get some ideas/hints from that. <p> <br><a href=mailto: > </a><br><a href= > </a><br> keep the rudder amid ship and beware the odd typo
 
Thanks!! Found the references in CGI.pm to CGI:push and that had some interesting information.<br><br>BTW, Is there any easy way to see all the library routines that are installed in Perl?<br><br>Thanks Again..
 
Here you are,

Hope you can do ;-)



#!/usr/bin/perl -w
$| = 1;
print &quot;Content-type: multipart/x-mixed-replace;boundary=BOUNDARY\n\n&quot;;

@stuff = qx~find .~;
foreach $file (@stuff)
{
chop $file;
print &quot;<b>$file</b>\n&quot;;
sleep 1
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top