Glenn wrote:
On Mon, May 03, 2004 at 07:17:54PM +0200, Arnaud Blancher wrote:
Stas Bekman a ?crit :
Arnaud Blancher wrote:
Stas Bekman a ?crit :
ydnar wrote:
The eval() is unecessary. The named sub can be used:
&$func();
yes but not with
use strict
...
try:
{
no strict 'refs';
&$func();
On Mon, May 03, 2004 at 07:17:54PM +0200, Arnaud Blancher wrote:
> Stas Bekman a ?crit :
>
> >Arnaud Blancher wrote:
> >
> >>Stas Bekman a ?crit :
> >>
> >>>ydnar wrote:
> >>>
> The eval() is unecessary. The named sub can be used:
>
> &$func();
> >>>
> >>>
> >>>
> >>yes but not with
Arnaud Blancher wrote:
[...]
try:
{
no strict 'refs';
&$func();
}
yes, it's work.
i'don't realy like this solution, just because i always try to use 'use
strict'
to avoid problem with mod_perl
But in this case, it disables strict refs only for a very small scope! It
doesn't affe
Stas Bekman a écrit :
Arnaud Blancher wrote:
Stas Bekman a écrit :
ydnar wrote:
The eval() is unecessary. The named sub can be used:
&$func();
yes but not with
use strict
...
try:
{
no strict 'refs';
&$func();
}
yes, it's work.
i'don't realy like this solution, just because i alwa
Arnaud Blancher wrote:
Stas Bekman a écrit :
ydnar wrote:
The eval() is unecessary. The named sub can be used:
&$func();
yes but not with
use strict
...
try:
{
no strict 'refs';
&$func();
}
FWIW, I find $func->() to be a more readable syntax.
You don't need to load anything. I
Stas Bekman a écrit :
ydnar wrote:
The eval() is unecessary. The named sub can be used:
&$func();
yes but not with
use strict
...
mod_perl remaps exit() to ModPerl::Util::exit(). Are you sure the
right modules are being loaded?
You don't need to load anything. Indeed under mp2:
*CORE:
ydnar wrote:
The eval() is unecessary. The named sub can be used:
&$func();
mod_perl remaps exit() to ModPerl::Util::exit(). Are you sure the right
modules are being loaded?
You don't need to load anything. Indeed under mp2:
*CORE::GLOBAL::exit = \&ModPerl::Util::exit;
And you don't need to
ydnar a écrit :
The eval() is unecessary. The named sub can be used:
&$func();
great, it's ok!
mod_perl remaps exit() to ModPerl::Util::exit(). Are you sure the
right modules are being loaded?
i don't know.
how can i know that ?
tank you very much
Arnaud.
Arnaud Blancher wrote:
hi all,
I ha
The eval() is unecessary. The named sub can be used:
&$func();
mod_perl remaps exit() to ModPerl::Util::exit(). Are you sure the right
modules are being loaded?
Arnaud Blancher wrote:
hi all,
I have a stange problem whith mod_perl 2.
The script behing have a diferent result in perl/cgi than i