Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Expression, but is it regular?

by Trimbach (Curate)
on May 08, 2001 at 16:13 UTC ( [id://78803]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if ($in{username} =~ /^(\[a-zA-Z]{2})/ || ' ') {
         $dirtype = $1 || 'other';
    }
    
  2. or download this
    my $dirtype;
    if ( $in{username} =~ /^([a-zA-Z]{2})$/ ) {
    ...
    } else {
          $dirtype = 'other';
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-04-26 02:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found