Sorry, my mistake...you wanted
if( $i != NULL )
and I gave you
if( !$i ) 
when I should have given
if( $i )
  ----- Original Message ----- 
  From: Chris Anderson 
  To: Tanton Gibbs 
  Cc: [EMAIL PROTECTED] 
  Sent: Saturday, January 26, 2002 2:42 PM
  Subject: Re: Trying to get NULL with use strict; - How???


  This did not work! :(

  I just replied to Dadivd Wagner's note, with the entire code, which, BTW, is heavily 
domumented! :)

  Something I got into the habit of doing back in QB 4.5 days! :)

  Didn't know that perl did not support NULL! :( :(

  Anyway, any other suggetions would be greatly appreciated! :)

  thanks,

  Chris

  Tanton Gibbs wrote:

I'm not sure what you want here, but there is no NULL in perl.You might mean undef or 
0, in which you can just sayif( !$i ) { ....}HTH,Tanton----- Original Message ----- 
From: "Chris Anderson" <[EMAIL PROTECTED]>To: <[EMAIL PROTECTED]>Sent: Saturday, 
January 26, 2002 12:35 PMSubject: Trying to get NULL with use strict; - How???
The following code fails:                if ( $i != NULL ) {                       if 
($j < 10) {                        print DUMPFILE "     $j) ", "$value[$i]\n" ;        
            } else {                        print DUMPFILE "    $j) ", "$value[$i]\n" 
;                    }                }as I have:use strict;At the very top.But I need 
a way to check and see if the array is empty...(4 items, but can have 20)How would I 
do this???TIA!-- Chris Anderson-- To unsubscribe, e-mail: 
[EMAIL PROTECTED] additional commands, e-mail: [EMAIL PROTECTED]




-- Chris AndersonCTOC&P Enterpriseshttp://www.candp-ent.com/


Reply via email to