RE: conditional statement: indicator not blank
[email protected] (Bryan Baldus)
| Newsgroups | perl.perl4lib |
|---|---|
| Message-ID | <1F95E99A11EFA541B0BDE754166A8F7001605FEB@qbiex.qbi.quality-books.com> |
On Monday, April 30, 2007 2:18 PM, Corey Harper wrote:
>I tried the following variations to no avail:
>* != '' (no space)
>* != ' ' (with space)
>* != undef
>* != null
>* != '#'
>* !- '_'
>
>I ended up having to use the following, which achieved the desired
>effect with any of the above in the first slot:
>
>if ($field_7xx->indicator(2) != '' || $field_7xx->indicator(2) == 0) {
Would it not be better to use string comparison operators, ne and eq, since
indicators may not necessarily be numeric?
Please correct me if I am wrong.
Bryan Baldus
[email protected]
[email protected]
http://home.inwave.com/eija