"be consistent" | |
PerlMonks |
Re: Newbie Regex Problemby omouse (Initiate) |
on Oct 20, 2007 at 15:28 UTC ( [id://646182]=note: print w/replies, xml ) | Need Help?? |
If $test isn't part of a larger string, you can just slice it instead of using a regular expression.
You can slice off the "LDAP://CN=" since you know it'll always be there, then you slice to the first comma.
In Section
Seekers of Perl Wisdom
|
|