On Thu, May 27, 2004 at 12:45:02AM -0700, Stas Bekman wrote: > So how do I check in C whether the passed variable (or a random sv) is > undef or not if comparing to &PL_sv_undef doesn't work? am I missing some > obvious RTFM section? I've read: 'perlguts:=head2 AVs, HVs and undefined > values' > but it doesn't seem to be related. There were many other references to > undef in the perl manpages, but I didn't find anything useful. From perldoc perlguts: If you want to know if this variable (or any other SV) is actually "defined", you can call: SvOK(SV*) I've always used this, but the documentation in perlapi: SvOK Returns a boolean indicating whether the value is an SV. bool SvOK(SV* sv) doesn't really lead you to it. -- TonyThread Previous | Thread Next