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:
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..
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
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.