Sep 5, 2000, 7:54 AM
Post #2 of 2
You STILL HAVE NOT SHOWN US the code to newgetopt.pl. However, I can tell you how I believe it works.
Re: How does this work ---> $NGetopt.pl
[In reply to]
NGetOpt() gets a list of strings, such as "X=Y", where X is the name of the option, and Y is the type of value the option gets. 's' is probably "scalar". When you do
<BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">code:</font><HR>
# program called as: myprog -foo Jeff
$ok = NGetOpt("foo=s");
NGetOpt() creates the variable $opt_foo, and gives it the value 'Jeff'.
I can't tell you any more than that.
Why don't you read the documentation for the file?
Jeff "japhy" Pinyan -- accomplished author, consultant, hacker, and teacher