Return-Path: Delivered-To: apmail-perl-dev-archive@www.apache.org Received: (qmail 76857 invoked from network); 4 Mar 2009 20:27:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Mar 2009 20:27:54 -0000 Received: (qmail 64924 invoked by uid 500); 4 Mar 2009 20:27:54 -0000 Delivered-To: apmail-perl-dev-archive@perl.apache.org Received: (qmail 64753 invoked by uid 500); 4 Mar 2009 20:27:53 -0000 Mailing-List: contact dev-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@perl.apache.org Received: (qmail 64744 invoked by uid 99); 4 Mar 2009 20:27:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Mar 2009 12:27:53 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Mar 2009 20:27:44 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LexgZ-0006gz-BL for dev@perl.apache.org; Wed, 04 Mar 2009 12:27:23 -0800 Message-ID: <22338572.post@talk.nabble.com> Date: Wed, 4 Mar 2009 12:27:23 -0800 (PST) From: csross To: dev@perl.apache.org Subject: "Too many arguments for subroutine" after convert to mod_perl MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: cross@hccs.com X-Virus-Checked: Checked by ClamAV on apache.org I am converting some cgi scripts to enable them to run under mod_perl. I have one script that I defined as a package and reference it via the package name in the calling program. That eliminated my "undefined subroutine" errors but I just got one I do not know. Any help would be appreciated. I am getting the error [error] Too many arguments for packagesubs::getResultSet at /usr/local/apache2/cgi-bin2/launch_frm.cgi line 209, near "$strSQL)"\n In my calling program I have $sth = packagesubs::getResultSet($strSQL); In the called program I have package packagesubs; sub getResultSet() { $sqlQuery=$_[0]; $sth = $dbh->prepare($sqlQuery); $sth->execute || die "Can't prepare statement: $DBI::errstr"; return $sth; } -- View this message in context: http://www.nabble.com/%22Too-many-arguments-for-subroutine%22-after-convert-to-mod_perl-tp22338572p22338572.html Sent from the mod_perl - Dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org For additional commands, e-mail: dev-help@perl.apache.org