in reply to Creating new database handles with mod_perl
First read and understand CGI to mod_perl Porting. mod_perl Coding guidelines, Lexical scoping like a fox, Variable Scoping in Perl: the basics
Then read Apache::DBI and then view the source for Apache::DBI
Then see Apache::Status and/or turn on http://search.cpan.org/perldoc/DBI#trace and examine the logs
Also, try this
$ perl -le " for(1..3){my@f; print\@f }" ARRAY(0x99a934) ARRAY(0x99a934) ARRAY(0x99a934) $ perl -le " for(1..3){my@f; print\@f; push @global, \@f }" ARRAY(0x99a954) ARRAY(0x3f8cdc) ARRAY(0x3f8d4c)
That ought to clarify for you what is going on :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Creating new database handles with mod_perl
by Anonymous Monk on May 20, 2012 at 04:06 UTC | |
by Anonymous Monk on May 20, 2012 at 14:25 UTC | |
|
Re^2: Creating new database handles with mod_perl
by lschult2 (Novice) on May 20, 2012 at 14:34 UTC | |
by Anonymous Monk on May 22, 2012 at 09:14 UTC |