in reply to Re^2: ModPerl::Registry error
in thread ModPerl::Registry error
Apart from looking terrible, what is wrong with using local our variables?
It is a very obvious symptom of lack of experience :)
The "wrong" way
local our $foo = 1; Dance(); sub Dance { print "I win, $foo\n"; }
The "right" way
Dance( 1 ); sub Dance { my( $foo ) = @_; print "I win, $foo\n"; }
See Tutorials: Variable Scoping in Perl: the basics, Coping with Scoping
See also http://learn.perl.org/books/beginning-perl/ and the Modern Perl Book
|
|---|