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

A little quickie. Its novelty is that it doesn't simply unscramble itself to generate its output. I can't guarantee it will run on every system, but I think it should, if you have a complete installation of Perl. It certainly works with ActivePerl.

Bonus points if you guess what the F in the title is for. (No, it's not vulgar.)

s;;^(?:.*) -+ [\$^]|;,y/?$)](:.[*^+/racheldjopq/for$ARGV[0];print/"(.* +)"/for<>
Update: ambrus notes that changes in 5.10.0 cause it to print twice.

Caution: Contents may have been coded under pressure.

Replies are listed 'Best First'.
Re: JAPF
by ambrus (Abbot) on Oct 21, 2005 at 21:33 UTC

    Congratulations, you have found the Mirror of Erised.

    It must be a bad feeling to read about this, but I still have to tell that at least three people have found this idea before you (and one of them was me): the previous japhs are Opere Citato Japh, One-liner japh, Just Another JAPH, and a later one is Perl FAQ.

    However, I think your implementation is the best of all in that it hides the

    (Update: so well in fact, that I might not even have noticed anything if it wasn't for Not_a_Number's reply. Pity he didn't use spoiler tags for the F-word.)

    Also note that your japh has a good idea that's worth mentioning in a reply. Most japhs don't have any idea, and just put the overused ideas (like s with strange delimiters, punctation vars) to a visually new form. Some of my japhs are prone to that too.

      Shucks, instead of each of us re-inventing the wheel, why isn't there a module for this?

      Oh, wait, there is. ;-)


      Caution: Contents may have been coded under pressure.
Re: JAPF
by Not_a_Number (Prior) on Oct 21, 2005 at 17:58 UTC
    Bonus points if you guess what the F in the title is for.

    faq?

    Update: Forgot to say that I liked it very much. Roy Johnson++.

    BTW, it seems to have become even more obfuscated since I first looked at it...