![]() |
|
Don't ask to ask, just ask | |
PerlMonks |
Re: Modules 101 :: Using a Local Module from CPANby GrandFather (Saint) |
on Dec 07, 2022 at 02:36 UTC ( #11148634=note: print w/replies, xml ) | Need Help?? |
Just to elaborate a little on hippo's reply, when you use SomePackage;, you aren't "running the SomePackage script", you are effectively including the source code for SomePackage in your own script. There is more magic that goes on than that, but the essence is that SomePackage packages up some Perly goodness for you and makes it easy to use from your script.
Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond
In Section
Seekers of Perl Wisdom
|
|