Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by chipmunk (Parson)
on Oct 16, 2001 at 07:37 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://119051]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2024-04-16 20:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found