How to detect a charachter

Please support our Perl advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: May 2007
Posts: 81
Reputation: it2051229 is an unknown quantity at this point 
Solved Threads: 1
it2051229 it2051229 is offline Offline
Junior Poster in Training

How to detect a charachter

 
0
  #1
Oct 10th, 2008
I'm new in perl although i'm an experienced programmer on the c language and its successors. I learned that perl borrowed some concepts in C so i bothered learning it. i'm trying to solve this palindrome thing. In C we have the isalpha() function which PERL doesn't have. Is there an alternative code on how to detect if a value is a character or not? besides comparing it from A-Z of course.
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 898
Reputation: KevinADC has a spectacular aura about KevinADC has a spectacular aura about 
Solved Threads: 67
KevinADC's Avatar
KevinADC KevinADC is offline Offline
Practically a Posting Shark

Re: How to detect a charachter

 
0
  #2
Oct 10th, 2008
The short answer is no. Perl has no builtin function that checks if a character is an alpha character.
Last edited by KevinADC; Oct 10th, 2008 at 3:11 am.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Perl Forum


Views: 697 | Replies: 1
Thread Tools Search this Thread



Tag cloud for Perl
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC