{"id":2503,"date":"2017-12-08T12:22:27","date_gmt":"2017-12-08T12:22:27","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=2503"},"modified":"2025-02-01T23:08:00","modified_gmt":"2025-02-01T23:08:00","slug":"use-vs-require-in-perl","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/use-vs-require-in-perl\/","title":{"rendered":"Use Vs require in perl"},"content":{"rendered":"<p><strong>scmuser created the topic: use Vs require in perl<\/strong><\/p>\n<p>Hi,<\/p>\n<p>Whats difference between &#8220;use&#8221; and &#8220;require&#8221; in perl?<\/p>\n<p><strong>rajeshkumar replied the topic: Re: use Vs require in perl<\/strong><\/p>\n<p>use is done at \u2018compile-time\u2019 and require is done at \u2018run-time\u2019 (ie can conditionally load modules)<\/p>\n<p>Regards,<br \/>\nRajesh Kumar<br \/>\nTwitt me @ <a href=\"http:\/\/twitter.com\/RajeshKumarIn\" target=\"_blank\" rel=\"noopener\">twitter.com\/RajeshKumarIn<\/a><\/p>\n<p><strong>rajeshkumar replied the topic: Re: use Vs require in perl<\/strong><br \/>\nMore&#8230;<\/p>\n<p>use is a pre-built in function in perl to Imports some semantics into the current package from the named module, generally by aliasing certain subroutine or variable names into your package such as..<\/p>\n<p>* use Module VERSION LIST<\/p>\n<p>* use Module VERSION<br \/>\n* use Module LIST<br \/>\n* use Module<br \/>\n* use VERSION<\/p>\n<p>More info.. <a href=\"http:\/\/perldoc.perl.org\/functions\/use.html\" target=\"_blank\" rel=\"noopener\">perldoc.perl.org\/functions\/use.html<\/a><\/p>\n<p>Regards,<br \/>\nRajesh Kumar<br \/>\nTwitt me @ <a href=\"http:\/\/twitter.com\/RajeshKumarIn\" target=\"_blank\" rel=\"noopener\">twitter.com\/RajeshKumarIn<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>scmuser created the topic: use Vs require in perl Hi, Whats difference between &#8220;use&#8221; and &#8220;require&#8221; in perl? rajeshkumar replied the topic: Re: use Vs require in perl use is&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[14],"tags":[175],"class_list":["post-2503","post","type-post","status-publish","format-standard","hentry","category-perl","tag-perl"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2503","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=2503"}],"version-history":[{"count":1,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2503\/revisions"}],"predecessor-version":[{"id":2504,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2503\/revisions\/2504"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=2503"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=2503"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=2503"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}