summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorDave Mitchell <davem@fdisolutions.com>2003-01-16 17:12:37 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-01-22 21:22:31 +0000
commit8716503d4f67eab8980805177dcbdf2c897aa42e (patch)
tree75dfd1eeaae16fe1ce44e888b71343ff0bf456ac /toke.c
parentf0709b241ca4633837a71ebb25b49d6477a9b61f (diff)
downloadperl-8716503d4f67eab8980805177dcbdf2c897aa42e.tar.gz
Re: difference between my and our before introduction
Message-ID: <20030116171237.C420@fdgroup.com> (with a small test tweak) p4raw-id: //depot/perl@18571
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/toke.c b/toke.c
index 641e3e37b3..b879815393 100644
--- a/toke.c
+++ b/toke.c
@@ -5279,7 +5279,9 @@ S_pending_ident(pTHX)
*/
if (!strchr(PL_tokenbuf,':')) {
- if ((tmp = pad_findmy(PL_tokenbuf)) != NOT_IN_PAD) {
+ if (!PL_in_my)
+ tmp = pad_findmy(PL_tokenbuf);
+ if (tmp != NOT_IN_PAD) {
/* might be an "our" variable" */
if (PAD_COMPNAME_FLAGS(tmp) & SVpad_OUR) {
/* build ops for a bareword */