Re: Sth I don't understand about pnotes

2005-09-16 Thread Torsten Foertsch
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

Re: Sth I don't understand about pnotes

2005-09-16 Thread Anthony Gardner
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 >

Re: Sth I don't understand about pnotes

2005-09-16 Thread Damyan Ivanov
-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

Re: Sth I don't understand about pnotes

2005-09-16 Thread Carl Johnstone
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