In Perl, what is the difference between a .pm (Perl module) and .pl (Perl script) file?
At the very core, the file extension you use makes no difference as to how perl interprets those files. However, putting modules in .pm files following a certain directory structure that follows the package name provides a convenience. So, if you have a module Example::Plot::FourD and you put it in a directory Example/Plot/FourD.pm in a … Read more