bory has asked for the wisdom of the Perl Monks concerning the following question:

Hi Perl Monks! I'm very beginner in perl and I want to ask for your help! A friend of mine told me that you are the best and also very kind! So my problem is that i want to display a html file! I have a perl script which creates a html table and i want to display that table automaticaly (i hope you understand me).I note that I'm using perl version /agl/tools/perl/bin/perl/ under unix! Thank you very very much!

Replies are listed 'Best First'.
Re: display html file
by liz (Monsignor) on Aug 19, 2003 at 07:48 UTC
    ...i want to display that table automaticaly (i hope you understand me).

    I'm afraid I don't. Do you want to:

    • create a HTML-file from Perl and make that accessible for the world in their browser?
    • create a HTML-file for yourself and show it to yourself?
    • something else?

    Even though you may think we're the best and very kind, that's not enough to read your mind ;-) So please be clear in what you're trying to accomplish.

    Liz

    Update:
    Oops. "not" added.

Re: display html file
by PodMaster (Abbot) on Aug 19, 2003 at 07:50 UTC
    HTML::Display may do what you want, although I've never used it.
    PS -- since you're new, the PerlMonks FAQ is here for your perusal.

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.

Re: display html file
by CombatSquirrel (Hermit) on Aug 19, 2003 at 08:01 UTC
    You might want to have a look at a thread from a couple of days ago: run file.
Re: display html file
by fourmi (Scribe) on Aug 19, 2003 at 10:06 UTC
    Assuming that this a cgi or similar which has a variable containing your html table, all you need to do is print that variable (or however you 'deliver' the table.
    Be sure not to leave out the following line though
    print "Content-type: text/html\n\n";
    this needs to go above any print statements you have so that the browser knows that it is looking at HTML.

    More info is definately required, in the future though! Show a bit of code, whether you are running it as a cgi or command line, and what any inputs might be!

    cheers
    ant
Re: display html file
by Abigail-II (Bishop) on Aug 19, 2003 at 08:12 UTC
    So my problem is that i want to display a html file!

    That's what you use a browser for. Internet Explorer, Netscape, Opera and Lynx are some well-known browsers, the first two having about 99% of the market.

    Abigail