in reply to How do I get only one item out of attribute?

The simplest way is to use split.
my @results = split /,/, $branch; my $desiredAtt = $results[1];
If you want the returned value to only be the ou value you might look into making it return a hash of hashes. Your return hash would point to another hash. The sub hash would have three keys, corpid, ou and o. Then you could call
$return{"dn"}{"ou"}
to only get the ou field.

Replies are listed 'Best First'.
Re^2: How do I get only one item out of attribute?
by mr_evans2u (Novice) on Aug 21, 2006 at 18:30 UTC
    thanks, mscerra that worked!