aufflick has asked for the wisdom of the Perl Monks concerning the following question:
Inside XS calls, things like calling methods with undefined values causes very loud (and usually instructive) warnings. It's not uncommon, though, for Perl APIs to have undef as a valid and useful argument - in such cases I don't want my call_method() to fill my error log with noise. I tried a naive approach of:
But it had no impact. Can anyone suggest how I should do this? I guess I could play with $^W but I'd rather not...ENTER; (void)call_pv("use no 'undefined';", 1); // do some stuff with undefined values LEAVE;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Silencing warnings inside C/XS
by Anonymous Monk on Oct 08, 2012 at 07:31 UTC | |
by tye (Sage) on Oct 08, 2012 at 13:45 UTC | |
by Anonymous Monk on Oct 08, 2012 at 15:59 UTC | |
by tye (Sage) on Oct 08, 2012 at 16:44 UTC | |
|
Re: Silencing warnings inside C/XS
by Tanktalus (Canon) on Oct 10, 2012 at 16:36 UTC | |
|
Re: Silencing warnings inside C/XS
by aufflick (Deacon) on Nov 29, 2012 at 01:35 UTC |