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