in reply to Input and output piping?
In addition to IPC::Open2, you might want to consider using one of the many LDAP modules on CPAN, rather than running ldapadd externally.