Franklin,

Here is one way to do it

[code]
#Program to reverse a string without using built-in function
my $str = "Japan is the land of rising sun.";
my @str = split '', $str;
for ( my $i = $#str ; $i >= 0 ; $i-- ) {
print $str[$i];
}
[/code]

[output]
.nus gnisir fo dnal eht si napaJ

[/output]
 
best,
Shaji 
-------------------------------------------------------------------------------
Your talent is God's gift to you. What you do with it is your gift back to God.
-------------------------------------------------------------------------------

Reply via email to