How to run a Perl script on Windows Vista?

Space Lion

New member
Hi.
Okay, so I have installed the latest ActivePerl here, but when I try to open a .pl file windows will ask what program I'd like to open it with. Example:
I make this line on the notepad:
print "hello people\n";
I rename it to hello.pl
I open it with DOS. Instead of giving me "hello people", it pops the little window which asks me what program to open it with. If I choose notepad.exe, obviously it will only give me " print "hello people\n"; "
What am I doing wrong?
Thanks.
 
In the choose program dialog you must choose the ActivePerl interpretter. If its not in the list click on browse and navigate to the Active Perl director and click open. There should be a checkbox which says "always use the selected program to open this kind of file", this should already be checked, if not check click ok and you will never have to go through this procedure again. Alternatively you can look in the help of ActivePerl and see if there is a way to associate perl script files. Also in DOS you can type the full filename (i.e path included) of your ActivePerl intrepretter and the first time you open should cause ActivePerl to associate the files. There may also be a configuration which you have to set.
 
Back
Top