Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: (Golf) Reversal

by MeowChow (Vicar)
on May 02, 2001 at 08:55 UTC ( #77239=note: print w/ replies, xml ) Need Help??


in reply to (Golf) Reversal

12 so far:
sub R { ''.reverse@_ }
Hmmm... here's an 11 character one that works on your examples, only because they are numbers:
sub R { 0+reverse@_ }

   MeowChow                                   
               s aamecha.s a..a\u$&owag.print


Comment on Re: (Golf) Reversal
Select or Download Code
Replies are listed 'Best First'.
Re: Re: (Golf) Reversal
by japhy (Canon) on May 02, 2001 at 09:10 UTC
    Ok. Now come up with an 11-character one that works for non-numbers. ;)
    Hint? I'm being a bit of a wise-ass, aren't I? ;)


    japhy -- Perl and Regex Hacker
        Ok, question: What the...??? (I don't doubt that this works, but I've never seen that construct before...)


        Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2015-07-30 04:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (269 votes), past polls