in reply to Re: Autovivification with require
in thread Autovivification with require
I was under the impression that best practice is to name files to be brought in with require as *.pl and those being brought in with use as *.pm. I have no idea where I got this notion from, it was a long time ago - at least 2 decades - and I have been doing it that way ever since.
Almost every script I write has a require or three at the top for bringing in code I have created. Most have a few use statements for other people's modules. Over the years I have created a handful of OO modules which get included with a use statement.
Have I been doing this wrong all these years or has best practice changed and I never noticed?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: PM vs PL
by choroba (Cardinal) on Nov 20, 2020 at 22:34 UTC | |
by Bod (Parson) on Nov 20, 2020 at 22:47 UTC | |
by eyepopslikeamosquito (Archbishop) on Nov 20, 2020 at 23:41 UTC | |
by Bod (Parson) on Nov 21, 2020 at 00:12 UTC | |
|
Re: PM vs PL - oh there is PMC too!
by bliako (Abbot) on Nov 21, 2020 at 13:06 UTC | |
by Bod (Parson) on Nov 21, 2020 at 14:46 UTC |