Aha. What you need to do is tell Perl that you want to use these variables. Generally, that's done something like this:
#!/usr/bin/perl -wT # or #!c:/perl/bin/perl -wT
use strict;
my $q;
my $sess_id;
my $usr_name;
my $password;
and so forth. If you're familiar with scoping rules in another language, you'll find that Perl is pretty similar. | [reply] [d/l] |
If there is any chance that you will want to run this
using mod_perl, it is important to change those
declarations to:
use vars qw (
$q $sess_id $usr_name $password
);
I tried to explain why at RE (3): BrainPain-Help, don't think I
succeeded. If someone wants to give me feedback on how
to improve that description, I would appreciate it....
EDIT
Note that the mod_perl issue is likely to be an issue with
other "fast CGI" type approaches like FastCGI and ASP.
The underlying problem is not Apache/mod_perl, it is
with how Perl names things. | [reply] [d/l] |