Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: using "Getopt::Long" how to check parameter mandatory

by VinsWorldcom (Prior)
on Aug 24, 2010 at 14:45 UTC ( [id://856953]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Getopt::Long;
    
    ...
        print "$0: Argument required.\n";
        exit 1
    }
    
  2. or download this
    use Pod::Usage;
    
    ...
    if (!@ARGV) {
        pod2usage(-verbose => 0, -message => "$0: argument required\n")
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-20 02:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found