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 /opcode.h | |
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 'opcode.h')
-rw-r--r-- | opcode.h | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -1381,14 +1381,14 @@ EXT Perl_check_t PL_check[] /* or perlvars.h */ Perl_ck_fun, /* stringify */ Perl_ck_bitop, /* left_shift */ Perl_ck_bitop, /* right_shift */ - Perl_ck_null, /* lt */ - Perl_ck_null, /* i_lt */ - Perl_ck_null, /* gt */ - Perl_ck_null, /* i_gt */ - Perl_ck_null, /* le */ - Perl_ck_null, /* i_le */ - Perl_ck_null, /* ge */ - Perl_ck_null, /* i_ge */ + Perl_ck_cmp, /* lt */ + Perl_ck_cmp, /* i_lt */ + Perl_ck_cmp, /* gt */ + Perl_ck_cmp, /* i_gt */ + Perl_ck_cmp, /* le */ + Perl_ck_cmp, /* i_le */ + Perl_ck_cmp, /* ge */ + Perl_ck_cmp, /* i_ge */ Perl_ck_null, /* eq */ Perl_ck_null, /* i_eq */ Perl_ck_null, /* ne */ |