daniel808 has asked for the wisdom of the Perl Monks concerning the following question:
So I did up my script for active perl on windows, and then moved it to the linux server. On doing so, I get: Undefined subroutine Vars
big surprise for me. so I looked at my script
#!/usr/local/bin/perl -w use strict; use CGI qw/:standard :cgi-lib/; trimParameters(scalar(Vars()));
I found the CGI.pm file and Vars was listed under the cgi-lib export list, and the file also contained that Vars sub definition.
using CGI::Vars doesn't help, the message is "undefined sub CGI::Vars
trimParameters takes a hash reference, and strips off leading and trailing whitespace characters
Anyone have any suggestions.
thank you
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Vars in CGI
by PodMaster (Abbot) on Jul 29, 2003 at 05:24 UTC | |
|
Re: Vars in CGI
by hossman (Prior) on Jul 29, 2003 at 05:25 UTC | |
by daniel808 (Initiate) on Jul 29, 2003 at 06:14 UTC |