in reply to Palindrome Program without Reverse function
my is_palindrome {length($_[0])<2||substr($_[0],0,1) eq substr($_[0],- +1,1)&&is_palindrome(substr($_[0],1,-1);}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Palindrome Program without Reverse function
by choroba (Cardinal) on Oct 31, 2011 at 12:32 UTC |