in reply to run file
If you are under Windows, there is the simple minded way of simply "starting" the file through the associated program :
my $htmlfile = "c:\\test.html"; system(qq{start "$htmlfile"});
If you are not on Windows, or want to keep up some semblance of portability, there is my module HTML::Display, which tries to make displaying HTML in a browser somewhat less platform dependent, but it is not yet distributed stand-alone.
perl -MHTTP::Daemon -MHTTP::Response -MLWP::Simple -e ' ; # The $d = new HTTP::Daemon and fork and getprint $d->url and exit;#spider ($c = $d->accept())->get_request(); $c->send_response( new #in the HTTP::Response(200,$_,$_,qq(Just another Perl hacker\n))); ' # web
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: run file
by Anonymous2003 (Initiate) on Aug 18, 2003 at 11:07 UTC | |
by Abigail-II (Bishop) on Aug 18, 2003 at 11:20 UTC | |
| |
|