Hi,
I am trying to write a perl script, I am stuck while trying to put a variable from a file search, my file looks like this..
dn: ou=CA, ou=abc, o=com
objectClass: top
objectClass: organizationalUnit
-----
----
I want to search for first occurence of "dn:" and then pull out the value "CA" and put it in a variable.
Please help me to accomplish this.
Regards,
Scott