http://www.perlmonks.org?node_id=568591

mr_evans2u has asked for the wisdom of the Perl Monks concerning the following question:

In my Perl code I am pulling down an attribute called dn which has three items in it seperated by a comma. I need only the second item (ou=). How do I only show this one item? my $branch = $return{"dn"}; will return for example corpid=xxxxxx,ou=people,o=corp I don't want corpid=xxxx or o=corp