Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Force Getopt::Long to Require ONLY Equals Sign Between Option Name and Value

by tangent (Parson)
on Oct 19, 2019 at 00:04 UTC ( [id://11107679]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # Check if there is an option argument available.
    if ( $gnu_compat ) {
    ...
        return (1, $opt, $ctl, $type eq 's' ? '' : 0)
            if $optargtype == 1;  # --foo=  -> return nothing
    }
    
  2. or download this
    elsif ( defined $rest || @$argv > 0 ) {
        $optargtype = $gnu_compat_strict ? 1 : 3;
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-04-19 14:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found