Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^2: Inconsistent behavior of Getopt::Std

by likbez (Sexton)
on Aug 16, 2020 at 11:55 UTC ( [id://11120813]=note: print w/replies, xml ) Need Help??


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:  <%-{-{-{-<

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11120813]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-04-25 14:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found