Did you really take a close look at POD::Usage as suggested by joefission?? I think this module does what you want, namely extract (part of) the pod of your script and print it out. This can be used instead of a usage sub. Take especially a look at the example at the end of the documentation - I think that does exactly what you were looking for.
Please correct me if I misunderstood what you are trying to do ...
-- Hofmator
In reply to Re3: Documenting executables
by Hofmator
in thread Documenting executables
by perl::scribe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |