diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-01-09 23:42:25 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-01-09 23:42:25 +0000 |
commit | af2250df3612234f2fb1be95c7e91920e7cd92f7 (patch) | |
tree | 237a11b6f61e9dde19eac8cf21dfa8c7343c60ac /pp.c | |
parent | ff5bdd3795d35132380ba8c98bc3584895f25c76 (diff) | |
download | perl-af2250df3612234f2fb1be95c7e91920e7cd92f7.tar.gz |
Shorter source code in pp_gelem. (But it compiles to the same size)
p4raw-id: //depot/perl@23774
Diffstat (limited to 'pp.c')
-rw-r--r-- | pp.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -597,10 +597,8 @@ PP(pp_gelem) break; case 'P': if (strEQ(elem2, "ACKAGE")) { - if (HvNAME(GvSTASH(gv))) - sv = newSVpv(HvNAME(GvSTASH(gv)), 0); - else - sv = newSVpv("__ANON__",0); + char *name = HvNAME(GvSTASH(gv)); + sv = newSVpv(name ? name : "__ANON__", 0); } break; case 'S': |