Clever, but slow:
sub isPalindrome{ substr( $_[0], $_, 1 ) eq substr( $_[0], -($_+1), 1 ) or return for 0 .. length( $_[0] ) >> 1; 1; }
In reply to Re^2: Palindrome Program without Reverse function
by BrowserUk
in thread Palindrome Program without Reverse function
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |