> 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... >
Zero elements/length, or just plain undefined? if (defined($i)) { printf DUMPFILE ("%.6d", $j); } where exactly is the array??? Jonathan Paton __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]