Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

executing perl not from command prompt

by Anonymous Monk
on Jun 29, 2013 at 06:45 UTC ( [id://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 (Monsignor) 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.
    Bill
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.

    Voilą!

    Cheers, Sören

    (hooked on the Perl Programming language)

Re: executing perl not from command prompt
by hippo (Bishop) 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?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1041399]
Approved by davido
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-19 21:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found