Hi looking for some help. And I have RTFM and searched the web!!
Server W2K with Perl and Mysql installed - only FTP access. Created a mysql table and can get some output to the screen by trying to format it in a table (see www.hcresources.co.uk/query1.pl for example).
I have read notes here suggesting use of HTML::Template or DBIx::XHTML_Table. I have tried these (with the examples provided) but I get no output to my browser. How can I run queries against the remote server to see what is installed without having direct access. I have seen lots of scripts that suggest how to do things but they never produce any output on my browser. I do not know if it is because the modules are not installed on the server or I am not formatting the information correctly.
I did go and try to buy Perl and Mysql on the web by Paul Dubois as recommended here but it was out of stock and I did not know if it was too advanced for me anyway.

An example I have tried is
#!D:\Perl\bin\perl.exe #test4.pl use warnings; use strict; print "Content-type: text/html\n\n"; perl -MCPAN -e 'for $mod (CPAN::Shell->expand("Module","/./")) { next unless $mod->inst_file; print $mod->id," ", $mod->inst_version, + "\n"; }';

Looking for some help
Regards John

In reply to Trying to output mysql query to browser by Johnny_bike

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.