Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Pod Usage

by Random_Walk (Parson)
on Sep 09, 2005 at 10:17 UTC ( #490500=note: print w/ replies, xml ) Need Help??


in reply to Pod Usage

Is this what you are looking for ?

if ($target !~ /..../) { print "Syntax Error: Target should be x or y or z\n"; pod2usage(-verbose => 1); # just the usage exit; }

Update

BTW, as I see you are a perl@newbie are you using strict and warnings in your script? If not have a look at Use strict warnings and diagnostics or die to see why it is a good idea.

Cheers,
R.

Pereant, qui ante nos nostra dixerunt!


Comment on Re: Pod Usage
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://490500]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (11)
As of 2015-07-06 13:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (74 votes), past polls