On Thu, Oct 20, 2011 at 11:45 PM, newbie01 perl <newbie01.p...@gmail.com> wrote:
> Playing around with Getopt::Std as am trying to convert a UNIX
> Korn Shell Script to a Perl script.
>
> Is it possible to check for what are the values for opterr,
> optarg, optind?  How? :(-

There are many Getopt:: packages. Perhaps you should look into
other ones. :) Do you really need these variables you speak of or are you
just trying to port 1:1?

Personally, I use Getopt::Long because I like supporting long options as
well. I don't think I've ever used them in Perl (probably in C), but I
/think/ Getopt::Long supports those options (I'm too tired to check).

The options that seem to work as I prefer them:

  use Getopt::Long qw/:config auto_help bundling no_auto_abbrev
          no_getopt_compat no_ignore_case_always no_require_order
          permute/;

I don't care for "guess what I meant" software. I prefer software
that does what you say and refuses to work when that doesn't make
sense. ^^


-- 
Brandon McCaig <bamcc...@gmail.com> <bamcc...@castopulence.org>
Castopulence Software <https://www.castopulence.org/>
Blog <http://www.bamccaig.com/>
perl -E '$_=q{V zrna gur orfg jvgu jung V fnl. }.
q{Vg qbrfa'\''g nyjnlf fbhaq gung jnl.};
tr/A-Ma-mN-Zn-z/N-Zn-zA-Ma-m/;say'

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to