If perl is set up correctly on you computer, your perl script will run when you click on it. However, if your script does not do any input from the keyboard, you probably won't know that it ran. It opens a command window, runs in it, and closes that window so fast that you do not see anything. The easiest solution is to put a diamond operator (<>) at the end of your script. This gives you a chance to see your output. Type any character, or close the window to end the script.
| [reply] |
Just clicking on it will do
Have you tried it?
Because if it isn't set up correctly, or not the way you want it, you could do the following:
- Make sure the script has the extension you want to have connected with Perl. I see .pl a lot, but I prefer .perl
- Right click that file and follow the instructions to connect the extension with the Perl executable perl.exe.
Voilą!
Cheers, Sören
(hooked on the Perl Programming language)
| [reply] |
I would guess from your use of the phrase "windows command prompt" that you are using some variant of the Microsoft WindowsTM operating system. My familiarity with those systems is not extensive but from the few times that I have had to use them it has become clear to me that clicking on various desktop icons is rarely sufficient to cause them to execute. Instead you will need to double-click them. Try that.
| [reply] |
man you have clicked on create a number of times , there are multiple questions asking the same thing . To answer it , just click on the perl script logo | [reply] |