diff options
author | Father Chrysostomos <sprout@cpan.org> | 2011-11-01 18:25:59 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2011-11-01 18:50:41 -0700 |
commit | 89474f50ca76e8039d27bebe650de4addd0f1607 (patch) | |
tree | 632f082b84885242697c056e45080356b11b76e4 /regen | |
parent | bbdd8bad57f8d77a4e6c3725a49d4d3589efedd7 (diff) | |
download | perl-89474f50ca76e8039d27bebe650de4addd0f1607.tar.gz |
Warn for $[ ‘version’ checks
Following Michael Schwern’s suggestion, here is a warning for those
hapless folks who use $[ for version checks.
It applies whenever $[ is used in one of: < > <= >=
Diffstat (limited to 'regen')
-rw-r--r-- | regen/opcodes | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/regen/opcodes b/regen/opcodes index 688f1661cd..5b988a11aa 100644 --- a/regen/opcodes +++ b/regen/opcodes @@ -138,14 +138,14 @@ stringify string ck_fun fsT@ S left_shift left bitshift (<<) ck_bitop fsT2 S S right_shift right bitshift (>>) ck_bitop fsT2 S S -lt numeric lt (<) ck_null Iifs2 S S< -i_lt integer lt (<) ck_null ifs2 S S< -gt numeric gt (>) ck_null Iifs2 S S< -i_gt integer gt (>) ck_null ifs2 S S< -le numeric le (<=) ck_null Iifs2 S S< -i_le integer le (<=) ck_null ifs2 S S< -ge numeric ge (>=) ck_null Iifs2 S S< -i_ge integer ge (>=) ck_null ifs2 S S< +lt numeric lt (<) ck_cmp Iifs2 S S< +i_lt integer lt (<) ck_cmp ifs2 S S< +gt numeric gt (>) ck_cmp Iifs2 S S< +i_gt integer gt (>) ck_cmp ifs2 S S< +le numeric le (<=) ck_cmp Iifs2 S S< +i_le integer le (<=) ck_cmp ifs2 S S< +ge numeric ge (>=) ck_cmp Iifs2 S S< +i_ge integer ge (>=) ck_cmp ifs2 S S< eq numeric eq (==) ck_null Iifs2 S S< i_eq integer eq (==) ck_null ifs2 S S< ne numeric ne (!=) ck_null Iifs2 S S< |