in reply to Re: constant vector (updated x2)
in thread constant vector

> Sorry, B::Deparse seems to say that I was incorrect and the sub I showed does not seem to get inlined. Will update when I know more.

I think that's because inlining rejects dynamic values, you'd need to always return the same array ref, which of course contradicts your intention.

But your idea still works if you don't care about the speed benefit of inlining.

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!