Peter Scott wrote:
On Fri, 31 Aug 2007 15:08:01 -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";}
thats basically what i need to be able to do. if it helps i know ahead
of time that the two type in the array will always be a hashref or a string,
Then why does your pseudo code act as though the types are either a string
or a number? You're getting two different answers from people because of
this contradiction.
It's Saturday Peter. Chill.
Rob
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/