Sisyphus wrote:


How about:

if(!looks_like_number(val)) croak("Not a number");
dwg->aden->arc.radius = SvNV(val);

I think that might cover all bases, so to speak.


Heh - just checked and it doesn't seem to detect if val is a reference. Maybe:


if(!looks_like_number(val) || SvROK(val)) croak("Not a number");
dwg->aden->arc.radius = SvNV(val);

Have fun :-)

Cheers,
Rob


--
Any emails containing attachments will be deleted from my ISP's mail server before I even get to see them. If you wish to email me an attachment, please provide advance warning so that I can make the necessary arrangements.




Reply via email to