Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Just another japh

by physi (Friar)
on May 07, 2003 at 23:19 UTC ( [id://256414]=obfuscated: print w/replies, xml ) Need Help??

Got that inspiration from this perlgolf site I played around ... getting this one:

s;;,:_,,},,],,_:){:"},,:,,,,,_,:(,:,,,(:){,,{,:,,,(,:[:){,:(:"}:"",:}, +:,,,(;; y;,:_}][{"();PQWVTYSXUR;;s;(.);a^$1;eg;s!(...)!chr$1!eg;$_.=$/;print;

-----------------------------------
--the good, the bad and the physi--
-----------------------------------

Replies are listed 'Best First'.
Re: Just another japh
by jgallagher (Pilgrim) on May 08, 2003 at 00:40 UTC
    Very, very cool. One step in particular had me going for a while... Read more for spoilers.
      Nice,
      now I know why it works :-)

      There was a problem, when I've done the tr part. In my first attempt I was using:

      y;PQWVTYSXUR;,:_}][{}();;
      instead of
      y;PQWVTYSXUR;,:_}][{"();;
      But that gaves a strange result:

      Try this little script:

      s;;PQWPPVPPTPPWQRSQXVPPQPPPPPWPQUPQPPPUQRSPPSPQPPPUPQYQRSPQUQXVQXXPQVP +QPPPU;; print $_.$/; y;PQWVTYSXUR;,:_}][{}();; y;,:_}][{}();PQWVTYSXUR;; print $_.$/;
      This should normaly print out 2 equal strings. But it doesn't!? All the 'X' in the first string are replaced by a 'V'!?
      I've got no idea why!

      Cheers, physi

      -----------------------------------
      --the good, the bad and the physi--
      -----------------------------------
      
        y;PQWVTYSXUR;,:_}][{}();; y;,:_}][{}();PQWVTYSXUR;;
        As you might know by now: You used } twice in your replacement string. So no wonder it fails.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: obfuscated [id://256414]
Approved by gmax
Front-paged by gmax
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (4)
As of 2024-03-29 06:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found