Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
however, we have a 25M limit with one bank that the gateway is a custom gateway that does not support discover cards yet, so I have my programming pick one of the authorize.net accounts we have if it is a discover card and then all others go to the main merchant account.require "/home/path/to/ma/files/$_fileName.conf";
Of course with that I get an error: syntax error at /path/to/subs.data line 174, near "use MA::$_madType"use strict; my ($sth, $_mad); $sth = $dbh->prepare(qq{SELECT * FROM `merchantAccounts` WHERE `u` = " +1" AND (`volume_capable` < (`current_volume` + $_GrandTotal))}); $sth->execute(); $_mad = $sth->fetchrow_hashref(); $sth->finish(); my $_madFile = $_mad->{name}; use MA::$_madFile;
I get the same errors every time.my $_madFile = 'MA::' . $_mad->{name}; use $_madFile; # AND I've tried it this way: use "$_madFile";
$_cardCharged = MA::$_madFile::chargeCard();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using Modules
by chromatic (Archbishop) on Oct 13, 2007 at 02:29 UTC | |
|
Re: Using Modules
by naikonta (Curate) on Oct 14, 2007 at 02:40 UTC | |
by Anonymous Monk on Oct 21, 2007 at 01:16 UTC | |
by Anonymous Monk on Oct 21, 2007 at 04:23 UTC | |
by powerhouse (Friar) on Oct 21, 2007 at 21:00 UTC |