CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Win32 Programming Help: syntax woes: Edit Log



soft_king
Novice

Feb 11, 2009, 10:28 AM


Views: 4012
syntax woes

I tried running this script that I got online and I keep getting this syntax error and I don't know why. Can someone help me? I'm trying to retrieve over 1000 records from Active Directory. The code is below.

Code
use Win32::OLE 'in'; 
$colUsers = Win32::OLE->GetObject("LDAP://cn=users,dc=rallencorp,dc=com")
foreach $objUser (in $colUsers) {
print $objUser->Name,"\n";
}

I keep getting this message in cmd
syntax error at line 3, near "$objUser ( "


(This post was edited by soft_king on Feb 11, 2009, 10:31 AM)


Edit Log:
Post edited by soft_king (Novice) on Feb 11, 2009, 10:31 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives