summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorGisle Aas <gisle@aas.no>2001-05-18 07:24:51 -0700
committerJarkko Hietaniemi <jhi@iki.fi>2001-05-20 10:58:18 +0000
commitf684db92b07fe69bcc030b369da3dfb252522c72 (patch)
treeaec224b2c1893310516662c6e9ca0af69a5a191e /pp_ctl.c
parent9b33ce3b1592d0c13aec55cf7c63e0b9253b6b22 (diff)
downloadperl-f684db92b07fe69bcc030b369da3dfb252522c72.tar.gz
require $mod where $mod has touched numeric context
Message-ID: <lr3da2cpuk.fsf@caliper.ActiveState.com> p4raw-id: //depot/perl@10162
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index 0f034ee886..166d1daabf 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -3033,7 +3033,7 @@ PP(pp_require)
sv = POPs;
if (SvNIOKp(sv)) {
- if (SvPOK(sv) && SvNOK(sv)) { /* require v5.6.1 */
+ if (SvPOK(sv) && SvNOK(sv) && SvNV(sv)) { /* require v5.6.1 */
UV rev = 0, ver = 0, sver = 0;
STRLEN len;
U8 *s = (U8*)SvPVX(sv);