Fix bug #21742. require should be always invoked in
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Tue, 1 Apr 2003 18:39:43 +0000 (18:39 +0000)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Tue, 1 Apr 2003 18:39:43 +0000 (18:39 +0000)
commita89be09a10c36299e755a956d356eb7f1f643437
treefad7397078cfab938793727614ea388a35f3d402
parentb78f6729f182484e2ef54fb7af30d24d99373338
Fix bug #21742. require should be always invoked in
scalar context. This wasn't the case when called from
an eval(""), because the void context doesn't propagate
through the leaveeval op. Instead of making scalarvoid()
handle OP_LEAVEEVAL -- this breaks AutoLoader -- implement
a workaround in doeval().

p4raw-id: //depot/perl@19126
pp_ctl.c
t/comp/require.t