home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / perl / 6920 < prev    next >
Encoding:
Text File  |  1992-11-10  |  1.1 KB  |  33 lines

  1. Newsgroups: comp.lang.perl
  2. Path: sparky!uunet!mcsun!sun4nl!mhres!pronto!news
  3. From: jv@mh.nl (Johan Vromans)
  4. Subject: Re: NGetOpt interface - how to use it
  5. In-Reply-To: "G.W.Bultman"'s message of Mon, 9 Nov 1992 13:29:45 GMT
  6. Message-ID: <BxI0sA.3nq@pronto.mh.nl>
  7. X-Md4-Signature: 32ad8a29165a25b44527ca27632b98c6
  8. Sender: news@pronto.mh.nl (USEnet News System)
  9. Nntp-Posting-Host: largo:(jv)
  10. Organization: Multihouse Automation, the Netherlands
  11. References: <1992Nov9.132945.2010@uvaarpa.Virginia.EDU>
  12. Date: Tue, 10 Nov 1992 11:48:10 GMT
  13. Lines: 18
  14.  
  15.  
  16. > I'd like to use the NGetOpt interface, but I'm not sure how to 
  17. > check if an option is set or not.
  18. > |    #!/usr/local/bin/perl
  19. > |    require "newgetopt.pl";
  20. > |    do NGetOpt('gridsize=f','intervals=i','expparts=i');
  21. > |    
  22. > |    if ( option -gridsize is set )
  23.  
  24.     if ( defined $opt_gridsize ) 
  25.  
  26. Johan
  27. --
  28. Johan Vromans                       jv@mh.nl via internet backbones
  29. Multihouse Automatisering bv               uucp:..!{uunet,sun4nl}!mh.nl!jv
  30. Doesburgweg 7, 2803 PL Gouda, The Netherlands  phone/fax: +31 1820 62911/62500
  31. ------------------------ "Arms are made for hugging" -------------------------
  32.