Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Which are perl-internal subroutines?

by Tobiwan (Beadle)
on Nov 19, 2007 at 23:46 UTC ( #651805=note: print w/replies, xml ) Need Help??


in reply to Re: Which are perl-internal subroutines?
in thread Which are perl-internal subroutines?

Hi,

I've check all your described methods. All these methods are polluted by modules which are not needed or automatical loaded. So I only add the VERSION-subroutine to my list.

I don't want to check the attributes for all methods, other modules provide. Only for methods which are provided by pure perl.

  • Comment on Re^2: Which are perl-internal subroutines?

Replies are listed 'Best First'.
Re^3: Which are perl-internal subroutines?
by diotalevi (Canon) on Nov 20, 2007 at 00:18 UTC

    The list for core perl is everything from UNIVERSAL.pm and up. SUPER is also in the core and is frequently used. The other things are still somewhat uncommon. You would be wrong to think that only 'VERSION' is the available method. When I load my perl up with no modules at all and look at in the debugger I get four methods.

    perl -dea DB<1> m main via UNIVERSAL: DOES via UNIVERSAL: VERSION via UNIVERSAL: can via UNIVERSAL: isa DB<2> q

    ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

      Hi,

      I don't care about frequently use modules, because if someone use a module, he has to take care about side effects for himself.

      The UNIVERSAL-methods can() and isa() are still in my list. But for curiosity: what is the DOES() method? Where can I find documentation about ist? I've only perl 5.8x so I cant reproduce it.

        He said 5.9.4+ for DOES.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2020-11-28 22:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?