Anish Kumar K <[EMAIL PROTECTED]> > In java we have instance operator to tell the type of Object. > > Similarly in perl say I am passing a reference object to a function, > > Is it possible to detect in the function whether the object > is HASH or ARRAY...
The function "ref" does what you want. HTH, Thomas -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/