Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: How to use getopts?

by ikegami (Patriarch)
on Mar 10, 2010 at 23:43 UTC ( [id://827919]=note: print w/replies, xml ) Need Help??


in reply to How to use getopts?

First you input $groupDir from STDIN, then you replace it with that was previously supplied on the command line. That doesn't make any sense. Do you want to the caller to provide it via STDIN or via command line? (I'd pick the latter.)

the script will run with those switches.

Presumably this this the line that launches the script.

$ENV{`CLD_RV/rv_char.tcl -cell $cell`);

Aside that it's mostly nonsense, You seem to forgot to pass the switches.

Global symbol "$opt_d" requires explicit package name

uh, that error doesn't come from the code you posted.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (6)
As of 2024-03-28 10:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found