"use strict" breaking run-mailcap's argument parsing ?
Hello, debian-perl !
Following #803729 I have added "use strict" to the run-mailcap Perl
script, which is probably installed on your system.
But after receiving reports of crashes (#939226), I have the impression,
that "use strict" broke the script's argument parsing, for instance the
following lines:
elsif (m!^--(.*?)=(.*)$!) {
print STDERR "Warning: definition of \"$1=$2\" overrides value \"${$1}\"\n" if ($ {$1} && $ {$1} != $2);
$ {$1}=$2;
}
https://salsa.debian.org/debian/mime-support/blob/master/run-mailcap#L328-331
In my understanding one can not write things like ${$foo} or ${$1} under
"use strict", and I am tempted to remove the "use strict" statement for
the moment. But do you see a better solution, or is there a volunteer
to rewrite the argument parsing in a more "strict" way ?
Have a nice day,
Charles
--
Charles Plessy
Akano, Uruma, Okinawa, Japan
Reply to: