Good job, especially the use strict; use warnings;. Here's another way based on your code that you may find interesting. (EDIT: My bad... I totally glanced over the fact no built-ins were allowed).
while (my $letter = pop @ind){ print $letter; }
pop() removes the last element of an array. Also see shift(), unshift() and push()
-stevieb
In reply to Re^3: reverse a string in place
by stevieb
in thread reverse a string in place
by Priti24
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |