an implementation of Lisp's format function for perl