in reply to Re: getopt::std help
in thread getopt::std help

doh..
Thank you.
One more thing, will using getopt automatically reject the flags that are not explicitly specified (getopt('hltf', $o);), meaning if I call a program w/ ./program -x ,
Will getopt automatically reject and abort the program or do I need to tell the program that?

Replies are listed 'Best First'.
Re^3: getopt::std help
by hipowls (Curate) on Jan 07, 2008 at 08:04 UTC

    Try running ./program -x and see what happens. Sometimes the best way to learn is to experiment;)

      just to follow up on my post and also just in case there are newbies on this site like me who is having trouble deciphering other official document on getopt::Long,

      I ran into below page which gave me enough examples and definition for my slow head to understand bit better.. just wanted to share
      But I thank all the experts who reply to my posts as always :-) as there is nothing like coming here and get help/advice/encouragement(sometimes kick in the ass) to continue my journey of perl.. I love perl!!!!

      http://world.std.com/~swmcd/steven/perl/pm/getopt.html