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
In reply to Re^2: reverse a string in place
by reisinge
in thread reverse a string in place
by Priti24
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |