Op 27-06-2022 om 15:40 schreef Paul "LeoNerd" Evans: > On Fri, 24 Jun 2022 16:44:27 +0100 > "Paul \"LeoNerd\" Evans" <leonerd@leonerd.org.uk> wrote: > >> I was thinking that maybe it should be just exposed as a builtin:: >> function itself, perhaps as >> >> builtin::lexically_export $name, \&func; > I've had a bit of a go at implementing this: > > https://github.com/leonerd/perl5/tree/lexically-export > >> Perhaps it should take a whole kv-list of name/ref pairs, so you can >> export lots in one go: >> >> builtin::lexically_export >> one => \&one, >> two => \&two, ... > It currently doesn't do this yet, but shouldn't be hard to add. > What I do not understand is why one would want to use a different external name than the internal name? Exporter doesn't work like this and I for one, never felt the need to export under a different name. TIA, M4Thread Previous | Thread Next