in reply to Palindrome Program without Reverse function
Hi
The examples you find look probably like
In order to avoid the reverse function you could try to code it yourself: loop through the string $forw character by character, and construct $back by appending the characters at the correct place. Hope that idea helps you! Ratamy $back = reverse $forw; if ($back eq $forw) { # it is a palindrome
|
|---|