Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Re (tilly) 3: Strict, strings and subroutines

by gbarr (Monk)
on Oct 10, 2001 at 19:12 UTC ( #118004=note: print w/ replies, xml ) Need Help??


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

Unless someone has a strange perl configuration, UNIVERSAL is statically linked. So you don't pull in UNIVERSAL, it is just there.


Comment on Re: Re (tilly) 3: Strict, strings and subroutines
Re (tilly) 5: Strict, strings and subroutines
by tilly (Archbishop) on Oct 10, 2001 at 19:24 UTC
    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.

      Ah, right. Yes that is true. For example, __PACKAGE__->can('can') will always return a code reference.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://118004]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (18)
As of 2014-04-17 20:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (455 votes), past polls