Sample code for 30+ languages & platforms
Perl

Azure OAuth2 Examples for Chilkat2 Perl