On Fri, Feb 08, 2002 at 01:44:17AM +1100, Stuart wrote:
> Hi all,
> Can anyone help please?
>
> # example values
> $Charge = "55";
> $CreditCard = "423452345654532";
> $VisaCard = /^4\d{15}/;
> $BankCard = /^(6565\d{12})|(555[10]00\d{10})/;
does something like:
$okayflag = /^4\d{15}/ || /^(6565\d{12})|(555[10]00\d{10})/;
work?
>
>
> if ($Charge > 0 && (($VisaCard|$BankCard),$CreditCard) ) { # This bit
> doesn't work?
if( ($Charge > 0 ) && ( defined($BankCard) || defined($VisaCard) ){
I think if you used strict and -w you'd find it'd complain about not
using uninitialised variables and may have flagged other points in the
code.
HTH
--
Frank Booth - Consultant
Parasol Solutions Limited.
(www.parasolsolutions.com)
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]