perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carl Johnstone" <modp...@fadetoblack.demon.co.uk>
Subject Re: Sth I don't understand about pnotes
Date Fri, 16 Sep 2005 10:28:11 GMT
From: "Anthony Gardner" <cyclewood_ltd@yahoo.co.uk>
> 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->pnotes('KEY' => number_of_elements_in_array );


Your other snippit looks OK to me.

Carl


Mime
View raw message