Man, you gotta be kidding. It's that easy? Look at the program I just wrote to post here. It's not command line, but I figured it would help. Guess I was wrong:
#!/usr/bin/perl -w
#AUTHOR: Greg Norris (Greg@GregNorris.net)
#FILE: print_reverse_string - Prints a list of characters in reverse order.
use strict;
use warnings;
my ($string, $length, $lastCharIndex, $lastChar );
$string = "ABCDEFG";
$length = length($string);
$lastCharIndex = ($length -1);
while ($string)
{
$lastChar = substr($string, $lastCharIndex, 1);
print "$lastChar \n";
chop $string;
$lastCharIndex --;
}
exit;
Oh well, I had fun with it.
-Greg
PS- Oiel, I hope you gave justice41 a vote. I did. _______________________________________
constructed from 100% recycled electrons