in reply to Nicest way of getting STDIN a beauty contest
The problem is the unusual requirement "And if there is no input from STDIN return help page."
Drop it.
Add the couple of lines needed to support -h and --help instead, and you have a standard unix tool. See Getopt::Long
|
|---|