Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: A small (for me) JAPH

by BooK (Curate)
on Dec 23, 2000 at 03:45 UTC ( #48111=note: print w/ replies, xml ) Need Help??


in reply to A small (for me) JAPH

You might want to look at the optimised code with perl -MO=Deparse:

Spoiler

print $JAPH if $_ = 'Just Another Perl Hacker,' and $main::{join '', /\b\w/g} = $main::{(split(//, $_, 0))[ +2] ^ chop $_};

Nice use of symbolic references and ^...

The xor part reminds me of my own $A++ under constraints.


Comment on Re: A small (for me) JAPH
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://48111]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2014-09-20 15:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (160 votes), past polls