The following script are intelligent combinations of slices of two arrays. At the beginning, both arrays are the same, and I get reasonable results. Then I change one of the arrays and smart match two new fragments, but it still says the fragments are identical. However, when I copy slices into arrays, smart array matching shows that they are really different.
script:
Exit:
Before change: values are the same: @x_s: one two equal equal After change: values should be different: @x_s: three two equal not equal
I use Perl 5.10.1, and this happens for both slicing an array and hash fragments. Why is this happening?
perl smartmatch
askucins
source share