Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Re: Re: 3-D Stereogram, Self replicating source.

by chipmunk (Parson)
on Oct 16, 2001 at 07:37 UTC ( #119051=note: print w/ replies, xml ) Need Help??


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.


Comment on Re: Re: Re: 3-D Stereogram, Self replicating source.
Download Code
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://119051]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (13)
As of 2015-07-28 14:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (255 votes), past polls