msk_0984 has asked for the wisdom of the Perl Monks concerning the following question:
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
Thanks in Advance Sushil#!/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;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Why is the Browser Not printing CGI -Output
by Gilimanjaro (Hermit) on Jul 06, 2006 at 12:06 UTC | |
by msk_0984 (Friar) on Jul 06, 2006 at 12:17 UTC | |
by Gilimanjaro (Hermit) on Jul 06, 2006 at 12:29 UTC | |
by msk_0984 (Friar) on Jul 06, 2006 at 12:27 UTC | |
by Gilimanjaro (Hermit) on Jul 06, 2006 at 12:33 UTC | |
Re: Why is the Browser Not printing CGI -Output
by Moron (Curate) on Jul 06, 2006 at 12:08 UTC |