I'd suggest using
ADSI. It requires
Win32::OLE. If you need to install
ADSI, go
here. The book "WIN32 PERL SCRIPTING, The Administrators Handbook" covers some of the basics of ADSI with Perl, though it doesn't have any NDS specific examples.
Unfortunately I've never used Perl to interface with NDS so I can't be much more help than this.
Good Luck,
Rich