On Fri, 2007-08-31 at 15:08 -0400, Hunter Barrington wrote: > is there a type() function in perl? i need to be able to test the > contents of an array and > if (type($value)=='string' or type($value)=='int') {print "i win";}
if( $value =~ m/^\d+$/ ) { print "I am a number\n"; } -- Ken Foskey FOSS developer -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/