Loading ...
Sorry, an error occurred while loading the content.

invoking sub/methods shortcut

Expand Messages
  • perl@swanmail.com
    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 ;)
    Message 1 of 2 , Oct 1, 2003
    • 0 Attachment
      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
    • Stas Bekman
      ... Please don t cross-post irrelevant to mod_perl questions in the future. Thank you. __________________________________________________________________ Stas
      Message 2 of 2 , Oct 1, 2003
      • 0 Attachment
        perl@... 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@... http://use.perl.org http://apacheweek.com
        http://modperlbook.org http://apache.org http://ticketmaster.com
      Your message has been successfully submitted and would be delivered to recipients shortly.