Hello Monks, I am using Pod::usage with Getopt::Long in perl script. For some errors i want to show only my error message and dont want pod to show SYNOPSIS or something else. Is it a way to tell pod2usage module to show only message and nothing else on STDOUT.
Eg. pod2usage( -message => "Syntax Error: Target should be x or y or z") if($target !~ /..../);
Giving this prints the message alongwith the SYNOPSIS Section
Eg
"Syntax Error: Target should be x or y or z"
Usage blah blah blah