On Fri, 2004-03-12 at 14:29, Nath wrote: > > It's a closure problem. > - How do I fix that?
Pass your variables to your subs. Or use globals, but passing variables to your subs is a good practice and you really should be doing it anyway. my $foo = some_sub(); bar($foo); sub bar { my $foo = shift; print $foo; } > Is this something mod_perl does or apache does from > using mod_perl? If I switch back to standard perl, the problem doesn't > exist. It's just something that perl does. You don't see it when you run under CGI because under CGI the perl process exits after each request. If the same perl interpreter were sticking around to handle more requests, you'd see the same problem. - Perrin -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html