An implementation of Promises in Perl