LMPX.COM |
Home | Linux | Mysql | PHP | XML | ||
|
|
|||
From: Greg Jetter Date: Wed Feb 20 10:38:47 2008 Subject: Re: Undefined subroutine: if (param('admin') eq "y")
On Tuesday February 19 2008 3:46 pm, Kyle.Rose08@gmail.com wrote: > I'm using the Web Developer Server Suite - Community Edition pretty > much out of the box on WindowsXP. This script worked fine on a LAMP > system although I am not sure what Apache modules were loaded. I am > beginning to wonder if I am missing some configuration to allow: > > if (param('admin') eq "y") > > ERROR > > Software error: > Undefined subroutine &main::param called at C:/www/vhosts/localhost/ > cgi-bin/stafio.pl line 33. > your missing the function called param . for some reason it not being loaded , you use it quit a bit in your code but it's not defined any where so it must be loaded by a call to use, or require see comments below > SCRIPT > > #!C:/www/perl/bin/perl.exe > use CGI::Carp qw(fatalsToBrowser); > # organizational In/Out board > > # configuration data > > require 'C:/www/perl/lib/datapath/stafio.ph'; reads through this and insure that all the paths to any additional libraries are correct Greg
| Navigate in group perl.beginners.cgi at sever nntp.perl.org | |
| Previous | Next |
| © No Copyright You are free to use Anything |
Site Maintained by PHP Developer
Powered By PHP Consultants |