Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re^2: reverse a string in place

by reisinge (Friar)
on Mar 24, 2013 at 10:27 UTC ( #1025137=note: print w/replies, xml ) Need Help??

in reply to Re: reverse a string in place
in thread reverse a string in place

Hello, your Perl solution seems to have problems with strings that have an even number of characters:

Original string: ab Using function: ab Using reverse: ba Original string: abcd Using function: dbca Using reverse: dcba

Excellence is an art won by training and habituation: we do not act rightly because we have virtue or excellence, but we rather have these because we have acted rightly. -- Will Durant

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1025137]
[LanX]: ah... Denmark is planning to build a wall at the German border!
[LanX]: # Pestis Africana Suum
[erix]: that's an old plan, I think. Isn't there already a danewal (or some such name)?
[marto]: Build with -Wall
[erix]: Danewerk

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (11)
As of 2018-03-22 18:38 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (283 votes). Check out past polls.