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?? |
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.)
Presumably this this the line that launches the script.
Aside that it's mostly nonsense, You seem to forgot to pass the switches.
uh, that error doesn't come from the code you posted.
In Section
Seekers of Perl Wisdom
|
|