summaryrefslogtreecommitdiff
path: root/opcode.h
diff options
context:
space:
mode:
authorMatthew Horsfall (alh) <wolfsage@gmail.com>2011-11-16 23:06:33 -0500
committerFather Chrysostomos <sprout@cpan.org>2011-11-18 17:46:21 -0800
commite508c8a4ba3a6febe681a5f59949b1d403b124bd (patch)
treebc1e0ac587fd09743c1e645c36bd889b4e334e1c /opcode.h
parent18f5643bfee3e4c35fe1b510ad2e37dcb28b9efc (diff)
downloadperl-e508c8a4ba3a6febe681a5f59949b1d403b124bd.tar.gz
Throw a helpful warning when someone tries length(@array) or length(%hash)
Diffstat (limited to 'opcode.h')
-rw-r--r--opcode.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/opcode.h b/opcode.h
index 99b25240aa..a1b9d2ee89 100644
--- a/opcode.h
+++ b/opcode.h
@@ -1422,7 +1422,7 @@ EXT Perl_check_t PL_check[] /* or perlvars.h */
Perl_ck_fun, /* hex */
Perl_ck_fun, /* oct */
Perl_ck_fun, /* abs */
- Perl_ck_fun, /* length */
+ Perl_ck_length, /* length */
Perl_ck_substr, /* substr */
Perl_ck_fun, /* vec */
Perl_ck_index, /* index */