http://www.perlmonks.org?node_id=118010


in reply to Re: Re (tilly) 3: Strict, strings and subroutines
in thread Strict, strings and subroutines

I possibly was unclear.

I meant pulling in UNIVERSAL in that functions which exist in UNIVERSAL but not in the current package would be found by merlyn's can invocation, even though you might not want them to be. In other words his local @ISA trick doesn't quite succeed in making a method lookup into a function lookup because it still finds things in UNIVERSAL.

Replies are listed 'Best First'.
Re: Re (tilly) 5: Strict, strings and subroutines
by gbarr (Monk) on Oct 10, 2001 at 20:19 UTC
    Ah, right. Yes that is true. For example, __PACKAGE__->can('can') will always return a code reference.