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