Just another Perl shrine | |
PerlMonks |
Pod Usageby perl@newbie (Novice) |
on Sep 09, 2005 at 09:13 UTC ( [id://490479]=perlquestion: print w/replies, xml ) | Need Help?? |
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 Eg "Syntax Error: Target should be x or y or z" |
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Pod Usage
by Random_Walk (Prior) on Sep 09, 2005 at 10:17 UTC | |
Re: Pod Usage
by VSarkiss (Monsignor) on Sep 09, 2005 at 16:29 UTC |
Log In? |
---|
Domain Nodelet? |
Node Status? |
node history Node Type: perlquestion [id://490479] Approved by GrandFather help |
Chatterbox? |
How do I use this? • Last hour • Other CB clients |
Other Users? |
Others admiring the Monastery: (7) As of 2024-04-18 14:31 GMT |
Sections? |
Information? |
Find Nodes? |
Leftovers? |
|
Voting Booth? |
No recent polls found |