Perl Monk, Perl Meditation | |
PerlMonks |
Re: Price updating script ideasby spartacus9 (Beadle) |
on Sep 25, 2002 at 14:24 UTC ( [id://200630]=note: print w/replies, xml ) | Need Help?? |
The problem is in how you structured your "if ($opcost = 0)" statement. when you declare "if ($opcost = 0)", you are actually setting the value of $opcost to zero, not checking it's value. try "if ($opcost == 0)" instead. the == is for comparison, the single "=" is for setting the variable.
In Section
Seekers of Perl Wisdom
|
|