in reply to Re: run file
in thread run file

I am under solaris and i use perl version 5004.04!I want to run the html file! thank you!

Replies are listed 'Best First'.
Re: run file
by Abigail-II (Bishop) on Aug 18, 2003 at 11:20 UTC
    One doesn't "run html files". HTML files contain data; HTML is not a programming language. If you mean you want to display an HTML file from within your Perl program, the following ought to work:
    system netscape => "file:///home/you/path/to/file.html";

    assuming that netscape is in your PATH.

    Or, if netscape is already running, you do something like:

    system netscape => 'remote', 'openURL(file:///home/you/path/to/fil +e.html,new_window)';

    Abigail

    A reply falls below the community's threshold of quality. You may see it by logging in.
    A reply falls below the community's threshold of quality. You may see it by logging in.