summaryrefslogtreecommitdiff
path: root/opcode.h
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2011-11-01 18:25:59 -0700
committerFather Chrysostomos <sprout@cpan.org>2011-11-01 18:50:41 -0700
commit89474f50ca76e8039d27bebe650de4addd0f1607 (patch)
tree632f082b84885242697c056e45080356b11b76e4 /opcode.h
parentbbdd8bad57f8d77a4e6c3725a49d4d3589efedd7 (diff)
downloadperl-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.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/opcode.h b/opcode.h
index 0d0990e4e1..34f8b48752 100644
--- a/opcode.h
+++ b/opcode.h
@@ -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 */