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.

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (10)
As of 2016-12-07 23:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (133 votes). Check out past polls.