Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: finite automata

by pjf (Curate)
on Oct 02, 2001 at 14:23 UTC ( [id://116093]=note: print w/replies, xml ) Need Help??


in reply to finite automata

So... you want to tell whether or not a string is composed entirely of the alphabet a-z? That's pretty easy with a regexp.
if ($string =~ /^[a-z]+$/) { print "Valid\n"; } else { print "Invalid\n"; }
You mentioned finite automata in your subject line, though. Am I missing something else here? ;)

Cheers,
Paul

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (10)
As of 2024-04-23 08:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found