in reply to Re: Re: 3-D Stereogram, Self replicating source.
in thread 3-D Stereogram, Self replicating source.

That's a good analysis of the code. I just have one correction. tr[|zY!%x][,Q]; You said that this changes | Y % into , and z ! x into Q. Actually, it changes | into , and z Y ! % x into Q. When a translation specifies more characters on the left than on the right, the last character on the right is used for all the extras. (With the /d modifier, the extras are deleted from the target string instead.)

perlop explains the tr/// operator in greater detail.

Replies are listed 'Best First'.
Re: Re: Re: Re: 3-D Stereogram, Self replicating source.
by John M. Dlugosz (Monsignor) on Oct 16, 2001 at 07:39 UTC
    last char replicated, not whole sequence repeats: gotcha. Thanks.

    —John