What's the easiest to maintain way of printing a Perl program's usage to stdout? I am looking for heredoc tricks or anything similarly useful. Forget individual successive prints.
EDIT 1: the issue I have faced many times is to have to maintain usage, general script documentation and option processing separately. I was looking for a way to combine some or all of this with minimal overhead. Thanks for the many suggestions. I will accept an answer when I have an opportunity to experiment proposed solutions.
Pod::Usage
maybe? This was suggested by GetOpt::Long
.
Getopt::Std::WithCheck
allows you to combine the definition of options along a description, and Getopt::Simple
does the same.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With