Earlier replies from
Utilitarian & AM aside, it strikes me that you're asking 2 entirely unconnected questions -
- Appears (to me) to be asking how to convert a sub name to the corresponding code ref .oO(is that the only value of a subroutine ?).
- IMO, the 2nd bears no relation to the 1st [question]
Additionally, you've not provided any clue(s) as to what you've done nor have you indicated where you found the problem(s) to which you allude.
In short, I suggest you read How do I post a question effectively? ...closely.
A user level that continues to overstate my experience :-))