|
|
| We don't bite newbies here... much | |
| PerlMonks |
Re: Palindrome arrayby Jim (Chaplain) |
| on Dec 29, 2012 at 09:01 UTC ( #1010804=note: print w/ replies, xml ) | Need Help?? |
|
This isn't C. In Perl, a palindrome is properly represented as a string, not an array of characters.
If this is a homework assignment, tell your teacher you expect to be given more verisimilar programming problems. ;-) If you're writing a Perl program to identify palindromic sequences in nucleic acids, you should still use strings, not arrays of characters, in my opinion. Jim
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||