Given the code supplied, unsure what you are really trying to do. If an array is not 
empty, then the test
        scalar(@value) would come back true.

If you could supply more code, errors generated, etc, might give the list a little 
more info on what is really happening.

Wags ;)

-----Original Message-----
From: Chris Anderson [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 26, 2002 09:36
To: [EMAIL PROTECTED]
Subject: 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]
For additional commands, e-mail: [EMAIL PROTECTED]

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to