Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Getting the count of a particular alphabet using subroutine

by Anonymous Monk
on Aug 06, 2010 at 14:47 UTC ( [id://853421]=note: print w/replies, xml ) Need Help??


in reply to Getting the count of a particular alphabet using subroutine

The title of this node is very confusing. An "alphabet" is a specific set of characters used for writing natural language, like the Latin alphabet or the Hebrew alphabet (whence the term). I believe the word you're looking for is "character" or "letter": "t" is a character which is a letter (letter being a specific class of written character).

In short, a character is the atomical unit of a string. Characters comonly include digits or "numerical digits" (eg, 1, 2, 3), letters (eg, 'a', 'b', 'ɣ'), punctuation (eg, ':', '#', '!'). Letters and numbers taken together are called "alphanumeric characters", or sometimes "alphanumerics".

Note that this is an issue of natural language, not of programming. Specifically, do not try to map these classes of characters to regular expression character classes without consulting the relevant documentation, especially for the purposes of input validation.

  • Comment on Re: Getting the count of a particular alphabet using subroutine

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://853421]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2024-04-25 22:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found