You want to see if a scalar is actually a scalar or a ref?
Try this... if ( ref $var ) { # It's a reference! } else { # It's not a reference } Rob -----Original Message----- From: amrit kumar [mailto:[EMAIL PROTECTED]] Sent: Friday, January 18, 2002 6:14 PM To: [EMAIL PROTECTED] Subject: array and hash assignment hi, howto to proove that array and hash assignments are made by using cloning and not by reference in perl. I am a newbie at perl and have no idea howoto to do it. need help !!!! have a good day.... cheers, amrit. __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]