PCSC/Perl allows the use of the PCSC/lite library to communicate with a smart card reader. It lets you quickly write personalisation scripts in Perl.