in reply to What am I breaking? (solved - double unquoting needing 'qw')
In our @num2nam = (... [ six => 0.1.1], ...) not quoting the values (e.g. 0.1.1) results in unprintable characters (0.1.1 concatenates ascii 0, 1 and 1 to a string) that confuse eval. After fixing it, you will only have to find why $res is undefined.
Edit: I am slightly out of my depth here as I was not aware of the "version strings" before haukex's Re^2: What am I breaking?. Although quoting the version strings may have fixed the problem, there is the danger of short-circuiting the test logic. Perhaps one can sprintf() those naked version strings using the special sprintf formatter mentioned by AnomalousMonk.
bw, bliako
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: What am I breaking?
by haukex (Archbishop) on May 09, 2019 at 20:49 UTC | |
by bliako (Abbot) on May 09, 2019 at 21:13 UTC | |
by AnomalousMonk (Archbishop) on May 09, 2019 at 22:42 UTC | |
|
Re^2: What am I breaking?
by perl-diddler (Chaplain) on May 10, 2019 at 02:42 UTC | |
|
Re^2: What am I breaking?
by perl-diddler (Chaplain) on May 10, 2019 at 01:30 UTC | |
by bliako (Abbot) on May 10, 2019 at 07:48 UTC | |
|
Re^2: What am I breaking?
by perl-diddler (Chaplain) on May 10, 2019 at 10:02 UTC |