perl@newbie has asked for the
wisdom of the Perl Monks concerning the following question:
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
"Syntax Error: Target should be x or y or z"
blah blah blah