in reply to Improving a palindrome script...
I would not call those major challenges ...
To test whether a string $str is 4 or more characters:
if (length($str) >= 4) { # ... }
To convert a string $str to lowercase (without "resorting to a regex"):
my $lower = lc $str;
Is that what you need?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Improving a palindrome script...
by chinamox (Scribe) on Oct 24, 2006 at 19:02 UTC | |
by ikegami (Patriarch) on Oct 24, 2006 at 19:05 UTC |