Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by Anonymous Monk
on Apr 18, 2014 at 06:41 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1082717]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2024-04-24 06:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found