RE: Am I checking for undef in the wrong way?

2009-07-23 Thread Jan Dubois
On Thu, 23 Jul 2009, Erland Sommarskog wrote: > > "Jan Dubois" (j...@activestate.com) writes: > > This can happen with other magical SVs too. You must call SvGETMAGIC() > > before you can trust the SVf_?OK flags. SvIV() will do this as a side > > effect. > > Thus, in any place where I receive a

RE: Am I checking for undef in the wrong way?

2009-07-23 Thread Erland Sommarskog
"Jan Dubois" (j...@activestate.com) writes: > This can happen with other magical SVs too. You must call SvGETMAGIC() > before you can trust the SVf_?OK flags. SvIV() will do this as a side > effect. Thus, in any place where I receive a value of which I don't know the origin, I should call SvGET