Stas Bekman wrote:
Arnaud Blancher wrote:
thank you
it's seems to be ok.
i ll read again closure in camel book !
See also:
http://perl.apache.org/docs/general/perl_reference/perl_reference.html#Understanding_Closures____the_Easy_Way
ok
first, i suppose i can't forbiden closure in my script !
but it was a good option for me !
second
the little probleme is when i test script with
perl -wc ./test.pl
i have no warning ... so that no easy to see
it will a problem under MP
when i put all my script in a
sub run {
...
}
i see the potential problem of mod perl but it's not a really good solution
to change the script every times i want to test !
but i see the warning :-)
third
i put a 'use warning' in the script.
In the apache error log i see the warning. that's ok
but i must restart the serveur when i change a module, that's more boring .
is it better way to test ?
At this time, there noting in the
http://perl.apache.org/docs/2.0/devel/debug/perl.html
:-(
maybe i'm the once to bug !
Arnaud.
--
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