Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

executing perl not from command prompt

by Anonymous Monk
on Jun 29, 2013 at 06:45 UTC ( #1041399=perlquestion: print w/replies, xml ) Need Help??
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

how to execute a perl script , without going in windows command prompt . Just clicking on it will do

Replies are listed 'Best First'.
Re: executing perl not from command prompt
by BillKSmith (Vicar) on Jun 29, 2013 at 10:46 UTC
    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.
Re: executing perl not from command prompt
by Happy-the-monk (Canon) on Jun 29, 2013 at 11:01 UTC

    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.


    Cheers, Sören

    (hooked on the Perl Programming language)

Re: executing perl not from command prompt
by hippo (Canon) on Jun 29, 2013 at 11:28 UTC

    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.

Re: executing perl not from command prompt
by torres09 (Acolyte) on Jun 29, 2013 at 06:47 UTC
    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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1041399]
Approved by davido
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2018-06-22 19:25 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (124 votes). Check out past polls.