Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: OOP - Constant Vs. Subroutine ()

by phaylon (Curate)
on May 12, 2007 at 17:38 UTC ( #615102=note: print w/ replies, xml ) Need Help??


in reply to Re^2: OOP - Constant Vs. Subroutine ()
in thread OOP - Constant Vs. Subroutine

While I have no idea of Perl's internals, it also seems that it depends what the sub contains. Of course, this is logical, since you can't inline everything. Seems to be that things that can be reduced to constant values will be inlined, which also makes it easier to remember :) So, "4" will be inlined, "4+4" too, since it can also be optimized away. "@INC" won't, for example.


Ordinary morality is for ordinary people. -- Aleister Crowley


Comment on Re^3: OOP - Constant Vs. Subroutine ()

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2014-12-18 00:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (41 votes), past polls