RE: array and hash assignment

2002-01-18 Thread Hanson, Robert
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:

RE: array and hash assignment

2002-01-18 Thread amrit kumar
hi, what i want to proove is...supposer that i assign an array @a = (1,2); and then i define another array @b which is equal to @a.I have to proove that this is done by assigning a copy of array @a to @b rather than by reference. Can you help me do that...i am bit confused .. thanks a lot..

RE: array and hash assignment

2002-01-18 Thread Jeff 'japhy' Pinyan
On Jan 18, amrit kumar said: what i want to proove is...supposer that i assign an array @a = (1,2); and then i define another array @b which is equal to @a.I have to proove that this is done by assigning a copy of array @a to @b rather than by reference. To determine if two variables point to

RE: array and hash assignment

2002-01-18 Thread Christopher Solomon
On Fri, 18 Jan 2002, [iso-8859-1] amrit kumar wrote: hi, what i want to proove is...supposer that i assign an array @a = (1,2); and then i define another array @b which is equal to @a.I have to proove that this is done by assigning a copy of array @a to @b rather than by reference.