Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Dynamic Validation messages in PERL Script

by burra_ramakanth (Initiate)
on Feb 02, 2012 at 10:50 UTC ( #951407=note: print w/ replies, xml ) Need Help??


in reply to Re: Dynamic Validation messages in PERL Script
in thread Dynamic Validation messages in PERL Script

Thanks for your reply monks!!!!

Hi im getting the following error message in the browser/log file

Software error:

Expires: Wed, 01 Feb 2012 09:38:46 GMT

Date: Thu, 02 Feb 2012 09:38:46 GMT

Content-Type: text/html; charset=ISO-8859-1

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">

<head>

<title>Error</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

</head>

<body bgcolor="white">

Error in calling HTML script---no output method defined.

Known Output Methods:

  • GENFILE
  • SENDFILE
  • ORAFILE

</body>

</html> at /desktop/mydocs/cgi-bin/myfolder/myperlfile.pl line 190.

My code part is as follows:

if ($output == 0) {

my $error = <<END;

Error in calling HTML script---no output method defined.

Known Output Methods:

  • GENFILE
  • SENDFILE
  • ORAFILE
END

wlErrorMail(\%FDG, $error);

die(wlErrorPage($error));---- Line number 190

}

}

Let me know if you need further more information..... Regards Ramakanth


Comment on Re^2: Dynamic Validation messages in PERL Script
Replies are listed 'Best First'.
Re^3: Dynamic Validation messages in PERL Script
by marto (Bishop) on Feb 02, 2012 at 11:03 UTC

    Now you know where to start debugging, you should investigate what wlErrorPage does, or why it behaves differently on the two servers. I advised you to read quite a few links, please do so. Also post formatting guidelines are displayed when you compose and again when you preview a post, please don't ignore them.

      Thanks for your reply!!!!. I got resolved the above issue by placing the required perl module in perl path and specificed the path in myperlfile.pl

      I got another error i.e Undefined subroutine &main::getDate

      My code line corresponding to the above error is my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst,$century,$amon,$aday) = &getDate;

      Can anyone suggest me how to resolve the above undefined error..Thanks in advance!!!

      Regards Ramakanth

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://951407]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (9)
As of 2015-07-30 07:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (270 votes), past polls