pcsc-lite defined some error codes specific to pcsc-lite. One is
This error code is never returned by pcsc-lite and has been removed in pcsc-lite revision 4574 included in pcsc-lite 1.6.0.
Do not reference this error code any more. The side effect is that if your Perl program uses
SCARD_W_INSERTED_CARDit will fail and has to be corrected.
Thanks to Olivier Huber for reporting the problem.
A previous blog entry about this Perl PCSC wrapper: PCSC sample in Perl.