Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Expression, but is it regular?

by OeufMayo (Curate)
on May 08, 2001 at 15:19 UTC ( #78793=note: print w/replies, xml ) Need Help??


in reply to Expression, but is it regular?

You're probably looking for something like that:

my $dirtype = $in{username} =~ /^([a-zA-Z]{2})$/ ? $1 : 'other' ;

<kbd>--
my $OeufMayo = new PerlMonger::Paris({http => 'paris.mongueurs.net'});</kbd>

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://78793]
help
Chatterbox?
[Corion]: Hi thezip ;)
[thezip]: Howdy Corion

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (11)
As of 2017-04-27 15:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (509 votes). Check out past polls.