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
In reply to Re: Nicest way of getting STDIN a beauty contest
by ikegami
in thread Nicest way of getting STDIN a beauty contest
by mickep76
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |