Hi Monks

It was also great help and i was also learning a lot from the point i hav joined into this group.

I am presntly working with CGI , Where in i am trying to get the List Of all The Installed Modules in the System .I have wrtten a program and i am getting the output in the Terminal perfectly giving the list of all installed modules. But when i run it in Mozilla browser i am not getting the Output on the Browser And i hav also set all the permission and also started all services all other programs in the same dir are running perfectly.

Update :The Ouput on the Browser is

Software error: "Can't cd to:" If i use  use CGI::Carp qw(fatalsToBrowser warningsToBrowser); Any help wld be appreciated i am struggling for this one. And here is my code

#!/usr/bin/perl use strict; use CGI qw(:standard); use CGI::Carp qw(fatalsToBrowser warningsToBrowser); use ExtUtils::Installed; my (@modules, @versions) ; my $inst = ExtUtils::Installed->new(); foreach my $module ($inst->modules()) { my $version = $inst->version($module) || "???" ; push ( @modules,$module ); push (@versions,$version); } my $cgi=new CGI; print $cgi->header; print $cgi->start_html( -title=>"List of Modules", -bgcolor=>"lightyellow" ); print $cgi->start_form(-name=>'modules', -action=>'list_modules.cgi'); print $cgi->center($cgi->h1($cgi->u("<i>List of Installed Modules< +/i>"))); for (my $i=0 ; $i<= $#modules ; $i++) { print $cgi->b(" $versions[$i] " ); print $cgi->b(" $modules[$i] <br> "); } print $cgi->end_form; print $cgi->end_html;
Thanks in Advance Sushil

In reply to Why is the Browser Not printing CGI -Output by msk_0984

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.