in reply to Re: Re: Re: __PACKAGE__ interpolated before inheritence
in thread __PACKAGE__ interpolated before inheritence
Notice that __PACKAGE__ and the constant Y got inlined at compile time, whereas $x did not.% perl -MO=Deparse -e 'use constant Y => "foo"; $x="bar"; return __PAC +KAGE__, $x, Y' sub Y () { package constant; $scalar; } $x = 'bar'; return 'main', $x, 'foo'; # <=== inlined values at compile time...
-Blake
|
|---|