Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Understanding this regex

by hbm (Hermit)
on Jun 04, 2013 at 13:38 UTC ( [id://1036978]=note: print w/replies, xml ) Need Help??


in reply to Understanding this regex

For "a single (and first) dn", use a scalar (not array) and exit the loop once you get it:

my $dn; while (<FILE>) { next unless /(<CN=.*?>)/; $dn = $1; last; }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2024-04-24 23:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found