QPID-4587: Improve the quality of the Perl examples.

Added more detailed comments to the code, and reformatted it.

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1447519 13f79535-47bb-0310-9956-ffa450edef68