You're probably looking for something like that:
my $dirtype = $in{username} =~ /^([a-zA-Z]{2})$/ ? $1 : 'other' ;
<kbd>--In reply to Re: Expression, but is it regular?
by OeufMayo
in thread Expression, but is it regular?
by web-yogini
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |