Use SvOK(sv) to test for undef-ness -- then you can skip all those other tests.
Unfortunately,
if( !SvOK( sv ) )
is not equivalent to
if( !SvPOK( sv ) && ( SvNOK( sv ) || SvIOK( sv ) || SvUOK( sv ) ) +)
In reply to Re^2: XS/Inline::C concat *any* two SVs.
by BrowserUk
in thread XS/Inline::C concat *any* two SVs.
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |