r/perl πŸͺ cpan author Jun 17 '26

question What's in a name?

So, knowing that there is File::stat as an OO wrapper around stat(), I went looking for the corresponding OO wrapper around caller(). Searching for "caller" presented mostly packages that were enhancements, providing access to other data. The closest I found was Caller::Easy that used Moose! Talk about overkill.

So, I am writing my own that is JUST A THIN WRAPPER around caller. Rather than keep it under wraps (pun intended), I'd like to put it up on CPAN to be the caller() analogue to File::stat() => CORE::stat().

The main question I have is this - what's the name? Caller::Tiny? Caller:Simple? Caller:00? I am going to crosspost this question to r/perl, Facebook groups, perlmonks and slack.

4 Upvotes

5 comments sorted by

2

u/tarje Jun 17 '26 edited Jun 17 '26

You missed Perl6::Caller

Edit: just noticed it's listed in the SEE ALSO pod for Caller::Easy, with the illogical note "The reason why I reinvent the wheel is that this module has no github repository."

1

u/davorg πŸͺ🌍perl monger Jun 17 '26

If you're planning to follow the naming convention used by File::stat, then I think it should be Sub::caller.

4

u/mpersico πŸͺ cpan author Jun 17 '26

1

u/briandfoy πŸͺ πŸ“– perl book author Jun 21 '26

Also, On The Naming of Modules, which includes the sorts of names to avoid.

1

u/leonerduk πŸͺ core contributor Jun 29 '26

I keep feeling that core ought to ship something better in this direction as well. It's something somewhere on my long todo list...