CC: | stevan.little [...] gmail.com |
Sub::Current provides an xsub (ROUTINE) which if distributed as part of (core) Sub::Util would make an excellent polyfill for __SUB__ in pre-5.16 perls. I would suggest (if possible) to actually treat it as a polyfill, exporting the xsub as __SUB__ in those environments or enabling current_sub feature in 5.16+