Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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
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 making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2014-09-15 02:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (145 votes), past polls