in reply to Re^3: %hash (@array && use constant) in Modules
in thread %hash (@array && use constant) in Modules

Benchmarking tells you if something is faster or not. B::Deparse tells you how Perl compiled your code. Both are useful in a case like this, so here's the Deparse way...
<mir 112 [8:56] ~ >perl -MO=Deparse -le 'use constant X=>17; print X' -e syntax OK sub X () { package constant; $scalar; } print 17;