[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]

Re: Exported constants not inlined?



>I was under the impression that constant functions got converted to
>constants at compile time. Yet when running Devel::DProf on some code I
>noticed my constants were being called as ordinary functions. Is this
>because I've got them in a separate Exporter module, and if so - can this
>be fixed somehow (preferably without explicitly specifying the full package
>name)?

Were they 1) used not required and 2) declared as sub fn() { value }

--tom


References to:
Matt Sergeant <matt@sergeant.org>

[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]