How to check data type in @_ ?

2003-07-21 Thread LI NGOK LAM
I am going to write a sub accept different types of data type. My interface is some what like this : $ret = mySub ( \%hash ); $ret = mySub ( [EMAIL PROTECTED] ); $ret = mySub ( \$calar ); $ret = mySub ( \Sub ); $ret = mySub ( $calar ); $ret = mySub ( %hash ); $ret = mySub ( @rray ); Is there

RE: How to check data type in @_ ?

2003-07-21 Thread Bob Showalter
LI NGOK LAM wrote: I am going to write a sub accept different types of data type. My interface is some what like this : $ret = mySub ( \%hash ); $ret = mySub ( [EMAIL PROTECTED] ); $ret = mySub ( \$calar ); $ret = mySub ( \Sub ); $ret = mySub ( $calar ); $ret = mySub ( %hash ); $ret =