Re: conditional statement: indicator not blank
[email protected] (Corey Harper)
| Newsgroups | perl.perl4lib |
|---|---|
| Message-ID | <[email protected]> |
Doh - thanks! My carelessness chalked up to Monday morning.
Thanks to all who pointed this out on and off list!
-Corey
Bryan Baldus wrote:
> 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
>
--
Corey A Harper
Metadata Services Librarian
Bobst Library, B42-LL1
New York University
70 Washington Square South
New York, NY 10012
212.998.2479
[email protected]