I wan to write a sub return true or false if the var was initialized.

Can someone correct this sub or is it good?

 ...
 if(isNULL($x) { print "it is null\n");
 else          { print "it is NOT null\n");
 ...

sub isNULL
{
  return $_[0] =~ //
}

thanks,
-rkl

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

Reply via email to