"be consistent" | |
PerlMonks |
Possible bug with array pointerby jockel (Beadle) |
on Jan 10, 2017 at 16:21 UTC ( [id://1179332]=perlquestion: print w/replies, xml ) | Need Help?? |
jockel has asked for the wisdom of the Perl Monks concerning the following question: Hi Either I'm missing something, or I've found a bug.. The following code should in my opinion print out the same in the first and second loop. But somehow the middle loop actually alters the array. What is happening?
OUTPUT:
-----BEGIN PERL GEEK CODE BLOCK-----
Version: 0.01
P++>*$c--->---P6 > R
>++++$M+>+++$O+++>+++$MA->+++$E >
PU->++BD->-C+>+$D+>+$S->+++X >+WP
>+++MO!PP
n?CO--PO!>!(!)o?G!A--OLC--OLCC--OLJ--Ee
!Ev-Eon-uL++>*uB!uS!uH-uo!w->!m+
------END PERL GEEK CODE BLOCK------
Back to
Seekers of Perl Wisdom
|
|