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 say
if( !$i ) {
...
}
HTH,
Tanton
----- Original Message -----
From: "Chris Anderson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, January 26, 2002 12:35 PM
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]