Problems? Is your data what you think it is? | |
PerlMonks |
Re: How do I get only one item out of attribute?by mscerra (Monk) |
on Aug 21, 2006 at 16:39 UTC ( [id://568604]=note: print w/replies, xml ) | Need Help?? |
The simplest way is to use split.
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.
In Section
Seekers of Perl Wisdom
|
|