in reply to Re: Inconsistent behavior of Getopt::Std
in thread Inconsistent behavior of Getopt::Std

It depends on utility. For example vi processes options more intelligently:
+num For the first file the cursor will be positioned on line "num". If "num" is missing, the cursor will be positioned on the last line.
  • Comment on Re^2: Inconsistent behavior of Getopt::Std

Replies are listed 'Best First'.
Re^3: Inconsistent behavior of Getopt::Std
by AnomalousMonk (Archbishop) on Aug 16, 2020 at 14:08 UTC

    So, do you want your option processor to handle an option in the format +[num] (I'm guessing that's what you intended to write)?


    Give a man a fish:  <%-{-{-{-<