On Thu, Oct 20, 2011 at 11:45 PM, newbie01 perl <[email protected]> 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 <[email protected]> <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/