http://qs1969.pair.com?node_id=465397

Please. Explain.
($_='kkvvttuubbooppuuiiffssqqffssmmiibbddllffss') =~y~b-v~a-z~s; print
Thanks :)

2005-08-29 Retitled by Arunbear, as per Monastery guidelines
Original title: 'JAPH'

Replies are listed 'Best First'.
Re: Please explain this JAPH
by monsieur_champs (Curate) on Jun 10, 2005 at 11:56 UTC

    This is just a demi-hidden translation (y///) operation, using a '~' as separator. It gets the string on $_ and do $_ =~ y/b-v/a-z/s; print; on it.

    Simple and beautiful.

      : ) this is my pm leader :) !!! Very nice explanation.
        Please forgive my ignorance, whats a pm leader? :)
      Hey thanks kaif, monsieur :) u guys rock, perl rocks, perlmonks rocks the hardest!
      Its pretty clear now, and I guess it was a simple JAPH that I should have been able to decrypt, except for the "y" instead of the "tr" function. Is this documented somewhere (Camel book etc)?

      Thanks again...
Re: Please explain this JAPH
by kaif (Friar) on Jun 10, 2005 at 04:22 UTC