Sample code for 30+ languages & platforms
Perl

Base64 Examples for Chilkat2 Perl