On Feb 8, Stuart Clark said:

>if ($Charge > 0 && (($VisaCard|$BankCard),$CreditCard) ) { # This bit
>doesn't work?

What is ((A | B), C) trying to do?  Perhaps you want:

  (($VisaCard || $BankCard) && $CreditCard)

>}elsif ($CreditCard = "" && $Charge < 0 ) { # Is "" ok for a null entry?

You need to use eq '', not = ''.  If you use =, you will SET $CreditCard
to the empty string.  You need to COMPARE it with the empty string.

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
RPI Acacia brother #734   http://www.perlmonks.org/   http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002 **
<stu> what does y/// stand for?  <tenderpuss> why, yansliterate of course.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to