On Friday 16 September 2005 12:08, Anthony Gardner wrote:
> Can s.o. explain what is wrong with the following code
>
>
> $r->pnotes('KEY' => push( @{ $ar }, $some_val ) );
>
> because, when it comes to getting the value from
> pnotes later with $r->pnotes(KEY), it returns the
> number of
Yeah, thta's cheeky. I totally overlooked what push
was returning.
I'll remember for next time.
Cheers all.
--- Damyan Ivanov <[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Anthony Gardner wrote:
> > Can s.o. explain what is wrong with the following
> code
>
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Anthony Gardner wrote:
> Can s.o. explain what is wrong with the following code
>
>
> $r->pnotes('KEY' => push( @{ $ar }, $some_val ) );
>
> because, when it comes to getting the value from
> pnotes later with $r->pnotes(KEY), it returns the
From: "Anthony Gardner" <[EMAIL PROTECTED]>
Can s.o. explain what is wrong with the following code
$r->pnotes('KEY' => push( @{ $ar }, $some_val ) );
It's a perl problem - not a mod_perl problem. push returns the new number of
elements on the array. So in effect you're doing:
$r->pnot