Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: Scalar to @ARGV for Getopt::Std

by oiskuu (Hermit)
on May 21, 2016 at 00:51 UTC ( [id://1163706]=note: print w/replies, xml ) Need Help??


in reply to Re: Scalar to @ARGV for Getopt::Std
in thread Scalar to @ARGV for Getopt::Std

I can answer part of the "why". (Probably not the OP's reason, though.)

A number of standard tools also take options from environment variables. E.g. less, gzip. This is a dubious practice, for sure. Less instructs the user to terminate any string args with a dollar sign '$' in that case. Gzip's handling of environment is still broken AFAIK was broken1). (It'll gladly read filenames, not just arguments—to a very comical effect when "GZIP=/bin/gzip" happens to be the case.)

The problem may also arise from attempting to bypass shell invocation for whatever reason.

1) Correction: this seems to be fixed in gzip version 1.7.

Log In?
Username:
Password:

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

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

    No recent polls found