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

Re: Understanding this regex

by hbm (Hermit)
on Jun 04, 2013 at 13:38 UTC ( #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? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (1)
As of 2021-09-26 13:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?