Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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?
[karlgoethebier]: shmem: Ja ischweis
[karlgoethebier]: shmem: Vielleicht hat er in den Bollerwagen gebrochen?
[karlgoethebier]: shmem:Ach so. Bollerwagen ist eigentlich was für Kinder. Bei uns fahren sie mit Traktoren und Feuerwehrwagen rum...
[shmem]: karlgoethebier: here abouts people are sitting in big tents, gulp beer and ingest badly scorched chicken and sausages while (not) listening to afwul musik

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (13)
As of 2017-05-25 12:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?