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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How do I get only one item out of attribute?
by imp (Priest) on Aug 21, 2006 at 16:28 UTC | |
by izut (Chaplain) on Aug 21, 2006 at 17:18 UTC | |
Re: How do I get only one item out of attribute?
by mscerra (Monk) on Aug 21, 2006 at 16:39 UTC | |
by mr_evans2u (Novice) on Aug 21, 2006 at 18:30 UTC | |
Re: How do I get only one item out of attribute?
by swampyankee (Parson) on Aug 21, 2006 at 17:56 UTC |
Back to
Seekers of Perl Wisdom