in reply to perl POD

This sounds like the perfect situation for the Pod::Usage module, which brother ybiC has conveniently written a tutorial for (in association with that other most marvellous module Getopt::Long).
HTH

_________
broquaint