[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: "use strict" breaking run-mailcap's argument parsing ?



-=| Roland Rosenfeld, 30.09.2019 17:17:07 +0200 |=-
> If you really need some generic argument parser, I'd use a hash of
> them, so the parser cannot change any variable but only the keys in
> the hash.  But this requires to rewrite the complete script to use the
> hash instead of the scalar variables.

Or use Getopt::Long -- everything about parsing command line options, 
including putting values in (pre-defined) scalars, arrays and hashes.


-- Damyan


Reply to: