You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by pe...@swanmail.com on 2003/10/02 08:42:15 UTC
invoking sub/methods shortcut
Can I do something like this?
from
$sth = getVUser($dbh, $u, $d);
return $sth->rows();
to
return (getVUser($dbh,$u,$d))->rows();
a move from java->perl ;)
thanks,
-rkl
Re: invoking sub/methods shortcut
Posted by Stas Bekman <st...@stason.org>.
perl@swanmail.com wrote:
> Can I do something like this?
> from
> $sth = getVUser($dbh, $u, $d);
> return $sth->rows();
> to
> return (getVUser($dbh,$u,$d))->rows();
>
> a move from java->perl ;)
Please don't cross-post irrelevant to mod_perl questions in the future.
Thank you.
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com