in reply to Bad file descriptor error with Net::LDAPS.

or die $!

The official documentation at Net::LDAP shows this $ldap = Net::LDAP->new( 'ldap.example.com' )  or  die "$@"; You may be seeing a stale message left in $!, unless you are sure you saw using $! with said module somewhere.

wild guess: probably one of the myriad of problems that can be unleashed from Microsoft HQ onto hopeful yet unsuspected windows users.

bw, bliako

Replies are listed 'Best First'.
Re^2: Bad file descriptor error with Net::LDAPS.
by Anonymous Monk on Aug 03, 2021 at 10:27 UTC

    Thank you for the reply.

    Even die "$@" throws the same error "Bad file descriptor at .pl line 5, <DATA> line 960."

    Regards

      What's 'ldap server'???? Isn't that supposed to be a hostname or an IP? I get Name or service not known at xx.pl line 5, <DATA> line 960.

        Yes, ldap server here i just given as a example, I am using server ip address instead of ldap server string

        Thank you