CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Getopt::Long

 



iphone
User

Mar 11, 2011, 10:53 PM

Post #1 of 1 (185 views)
Getopt::Long Can't Post

I just want to use 'msm' as an option,no value should be entered for it,how do I make sure that option msm exists and there is no value


Code
use Getopt::Long; 

#Getting the command-line options
my %options = ();
GetOptions (\%options,'msm','des=s', 'a=s', 'd=s', 'r=i', 'v=s');
if($options(msm)){....}


 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives