in reply to Re: Good way of getting subroutine name from ref?
in thread Good way of getting subroutine name from ref?
use B; sub cv2name { eval { my $obj = B::svref_2object( shift() ); $obj->STASH->NAME . "::" . $obj->GV->NAME; } || undef; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Good way of getting subroutine name from ref?
by diotalevi (Canon) on Dec 07, 2003 at 09:08 UTC | |
by ysth (Canon) on Dec 07, 2003 at 09:24 UTC | |
by diotalevi (Canon) on Dec 07, 2003 at 16:29 UTC | |
by ysth (Canon) on Dec 07, 2003 at 22:09 UTC |