On Thu, 30 Jan 2003, Andre van der Lingen wrote: > I would do it like this: > > if ($var / 1) { > print ("var: $var is: integer\n"); > } else { > print ("var: $var is: string\n"); > } > > if $var is a string than the outcome = "0" so the if statement will > print that $var is a string. >
Try your code when ($var = 0). I think you may be suprised to discover that the number 0 is a string rather than an integer. **** [EMAIL PROTECTED] <Carl Jolley> **** All opinions are my own and not necessarily those of my employer **** k _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs