filipebean has asked for the wisdom of the Perl Monks concerning the following question:
Hi all,
I’m printing the ref value of 2 arrays and the ref value is different, but the arrays values are equal (I’ve printed all the values inside and are the same).
Is it ok or am I missing something (assuming the content is the same):
Array 1: ARRAY(0x8020b2f8) Array 2: ARRAY(0x801db638)Both values also change every time I run the script, I thought It was the memory value so it should have the same value always …
Thank you in advance.
Best regards.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Comparing ARRAY Ref values
by ww (Archbishop) on May 09, 2013 at 13:48 UTC | |
by filipebean (Novice) on May 09, 2013 at 14:31 UTC | |
|
Re: Comparing ARRAY Ref values
by greengaroo (Hermit) on May 09, 2013 at 14:42 UTC | |
|
Re: Comparing ARRAY Ref values
by InfiniteSilence (Curate) on May 09, 2013 at 13:47 UTC | |
|
Re: Comparing ARRAY Ref values
by tobyink (Canon) on May 09, 2013 at 15:50 UTC |