in reply to Re^2: XS/Inline::C concat *any* two SVs.
in thread XS/Inline::C concat *any* two SVs.
It's not equivalent, but it does what you want it to do, doesn't it? You want to stringify the SV under all circumstances, but you don't want to see any undef warnings. SvOK tests for undef-ness. Check SvOK, and if the scalar is not defined, set its PV to an empty string. Doesn't that work?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: XS/Inline::C concat *any* two SVs.
by BrowserUk (Patriarch) on May 30, 2006 at 15:25 UTC | |
by creamygoodness (Curate) on May 30, 2006 at 16:00 UTC | |
by BrowserUk (Patriarch) on May 30, 2006 at 17:53 UTC | |
by tye (Sage) on May 30, 2006 at 18:15 UTC | |
by BrowserUk (Patriarch) on May 30, 2006 at 18:27 UTC | |
by creamygoodness (Curate) on May 31, 2006 at 05:59 UTC | |
|