I have also review all code blocks to make sure everything grouped properly and all was fine.
Are you sure your code now looks something like this?
if ($ODP1Dir eq "OUT" || $ODP1Dir eq "DOWN") { if (length($ODP1Val) != 0) {$ODP1Val = '-' . $ODP1Val;} if ($ODP1Dir eq "OUT") { $ODP1Dir = "IN"; } else { $ODP1Dir = "UP"; } }
Note also that you need eq instead of == to do a string comparison...
In reply to Re^5: global symbol...explict package name
by almut
in thread global symbol...explict package name
by rightfield
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |