To associate files:
1) Start windows explorer
2) Select, from the menu, Tools -> Folder Options
3) Select the File Types tab
4) Look in the list for a PL extension. If it does NOT exist:
4a) Click New
4b) Type pl for extension
5) Select the PL extension in the list
6) In the section "opens with", click Change
7) Select perl.exe
8) Click OK until all windows are closed.
by: Adam314 on 2009-06-19 at 15:27:12ID: 1720
I've seen this issue several time in the perl programming zone. The problem is that, on windows, the file extension is used to determine how a file should be handled. If, when installing perl, the .pl file extension is not associated with the perl interpreter, then, when the user tries to run the perl program by double-clicking the file, or typing the name, they get an error.
The solution is very simple - associate the .pl file extension with the perl interpreter. This is the reason for so few words.
Perhaps this isn't worthy of an article. I decided to write it because I've seen the problem several times, and thought it would be helpful.