in reply to Passing on "use"s

G'day Chuma,

A "use VERSION" may get you a fair selection of what you want (plus others depending on the value of VERSION). A "use v5.36" automatically gives you the first three in your list (plus others).

You may find Modern::Perl useful. See its source to get an idea of how to implement a custom version for your specific needs.

— Ken

Replies are listed 'Best First'.
Re^2: Passing on "use"s
by Chuma (Scribe) on Oct 29, 2023 at 16:16 UTC

    Thanks! That source code looks like it might have the answer somewhere... but it's a little too advanced for me to figure out. Suppose I just wanted "say" – I tried

    use feature(); sub import{feature->import('say')}

    but that doesn't seem to do anything.

    EDIT: It needed a package name, I guess. Seems to work now!