At 12:27 PM 8/7/00 -0700, Peter Scott wrote:
>Have often wanted a way to tell whether a scalar was a number, and rolling
>a regex each time seemed wasteful given that Perl knew what it was
>anyway. So a user-friendly way to get at the SvIOK and SvNOK results
>would be great.
The Sv?OK macros will likely go away in the new internals, or at least be
different. It'd be better to figure out what you really want to know. Those
macros tell you whether a scalar has already been changed to an integer,
float, or string, rather than whether it can be an int, float, or string,
for example.
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
[EMAIL PROTECTED] have teddy bears and even
teddy bears get drunk