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.. have a good day.. cheers, amrit. --- "Hanson, Robert" <[EMAIL PROTECTED]> wrote: > > 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] __________________________________________________ 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]