Hi Brandon,

Thanks for your response.

Getopt::Std seems to be the simplest one, so am tryiing that one out first
:-) Am just trying to port 1:1. Quite painful trying to figure out how to
get awk-like behavior in Perl especially when trying to do some calculation
on some specific fields.

I've seen Getopt::Long and is checking on it right now. I "gave" up on it
before trying to follow how it works which is why I've flipped back to using
Getop::Std as I find it "easier" to follow. Need more exercises on hash
arrays and references I guess.

On Fri, Oct 21, 2011 at 5:07 PM, Brandon McCaig <bamcc...@gmail.com> wrote:

> 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'
>

Reply via email to