Nick Ing-Simmons wrote:
Sisyphus <[EMAIL PROTECTED]> writes:

How does it get done in perl-space ?


For variables $foo you can't as $foo has its own SV and it isn't sv_yes.
For args to things something like !!$foo should work unless optimizer clobbers !!



That worked for me (so long as $foo is true) - also found that !$foo equated to &PL_sv_no.


In some other idle moments, I found I could use things like (1 == 1) for &PL_sv_yes, (0 == 1) for &PL_sv_no, and (pop()) for &PL_sv_undef.

Thanks Nick.

Cheers,
Rob



Reply via email to