tokuhirom / Perl-MinimumVersion-Fast

Other
4 stars 5 forks source link

Stacked comparison not yet detected #19

Open Tux opened 3 years ago

Tux commented 3 years ago
$ perlver-fast -ve'10 < $a < 40 and exit 0'
-e: 5.006 / 5.006

Stacked comparison was introduced in 5.31.10. If we exclude devel versions, it should report 5.32.0 instead of 5.006

$ perl5.30.3 -we '10 < $a < 42 and exit 0' (y|n|e|a)? yes
syntax error at -e line 1, near "$a <"
Execution of -e aborted due to compilation errors.
$ perl5.32.0 -we '10 < $a < 42 and exit 0'
Use of uninitialized value $a in numeric lt (<) at -e line 1.