Just another Perl shrine | |
PerlMonks |
Help Neededby scott_apc (Initiate) |
on Feb 03, 2009 at 11:41 UTC ( [id://740957]=perlquestion: print w/replies, xml ) | Need Help?? |
scott_apc has asked for the wisdom of the Perl Monks concerning the following question:
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
Back to
Seekers of Perl Wisdom
|
|