#!/usr/bin/perl use warnings; use strict; { package Local; sub My::frob { print __PACKAGE__ } } My::frob(); # Local
In reply to Re^3: How to identify the package of a subroutine given only a reference to it
by choroba
in thread How to identify the package of a subroutine given only a reference to it
by drclaw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |