Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: What are the advantages or disadvantages of "require" over "use"

by Anonymous Monk
on Apr 18, 2014 at 06:41 UTC ( #1082717=note: print w/ replies, xml ) Need Help??


in reply to What are the advantages or disadvantages of "require" over "use"

I just wanted to know about the advantages and disadvantages of "require" over "use" in Perl.

There are none, use use, use is require :)

I know that : list of things I kinda know

:D

is there any gain in terms of memory consumption when I use "require" or any other advantage ? Please let me know.

use is implemented using require ... they're one and the same

There are no gains in terms of anything ... its the same code

Difference between 'use' and 'require', Re^3: Moo error message not understood (begincheck.pl)


Comment on Re: What are the advantages or disadvantages of "require" over "use"

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2014-08-30 21:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls