in reply to Are "use constant" constants really inlined?
Hello Darkwing,
Yes, B::Deparse shows that they are indeed inlined:
17:21 >perl -MO=Deparse -e "use constant { C => 42, D => 0 }; print C; + print 'Debug' if D;" use constant ({'C', 42, 'D', 0}); print 42; '???'; -e syntax OK 17:28 >
Hope that helps,
| Athanasius <°(((>< contra mundum | Iustus alius egestas vitae, eros Piratica, |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Are "use constant" constants really inlined?
by ikegami (Patriarch) on Jun 30, 2016 at 18:27 UTC | |
|
Re^2: Are "use constant" constants really inlined?
by Darkwing (Scribe) on Jun 30, 2016 at 07:47 UTC |