in reply to Interpreter can't find known installed mods (w10)

"I found that if I run it from the command like so perl program.pl it finds the mods. But if I run it like so program.pl it doesn't. So I'm guessing must be something wrong with the file association to *.pl. I wonder how to fix that."

Here is command line way.
Of course perl.exe has to be found in the PATH.

C:\Users\marshall\Documents\PerlProjects>assoc /? Displays or modifies file extension associations ASSOC [.ext[=[fileType]]] .ext Specifies the file extension to associate the file type wi +th fileType Specifies the file type to associate with the file extensi +on Type ASSOC without parameters to display the current file associations +. If ASSOC is invoked with just a file extension, it displays the curren +t file association for that file extension. Specify nothing for the fil +e type and the command will delete the association for the file extensio +n. C:\Users\marshall\Documents\PerlProjects>assoc.pl .pl=Perl