Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re (tilly) 5: Strict, strings and subroutines

by tilly (Archbishop)
on Oct 10, 2001 at 19:24 UTC ( #118010=note: print w/replies, xml ) Need Help??


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.

  • Comment on Re (tilly) 5: Strict, strings and subroutines

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://118010]
help
Chatterbox?
[Lady_Aleena]: shmem, that is understandable! The two examples in File::Find don't make sense to me on a quick glance.
[marioroy]: LA if the find worked from Unix command line, or does it not. Likely a quoting issue inside Perl qx.
[Lady_Aleena]: marioroy, the find worked fine at the command line.
[marioroy]: LA, yeah. than there's no reason why it cannot work inside qx. But chatting is hard in PM. I cannot see the code now.
[shmem]: Lady_Aleena: sometimes a quick glance isn't enough.

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2017-04-23 20:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (432 votes). Check out past polls.