Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Five Ways to Reverse a String of Words (C#, Perl 5, Perl 6, Ruby, Haskell)

by parv (Priest)
on Dec 14, 2006 at 01:33 UTC ( #589710=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    say word_reverse( "  one   two three four    " )
    
    ...
        new = word( string , w ) new
      end
      return strip( new , 'T' )
    
  2. or download this
    word_reverse()
    {
    ...
    }
    
    word_reverse "  one   two three four    "
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://589710]
help
Chatterbox?
[Discipulus]: choroba so much work porting from C and the resulting code exceed the 2 sec limit.. ;=(
[Corion]: r@j: But single quotes do not interpolate anything. print $Process; outputs something different than print '$Process';.

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (17)
As of 2017-10-23 15:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (280 votes). Check out past polls.

    Notices?