Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: How to write out a Perl script and run it in as few keystrokes as possible.

by SuicideJunkie (Priest)
on Sep 25, 2012 at 16:28 UTC ( #995588=note: print w/ replies, xml ) Need Help??


in reply to How to write out a Perl script and run it in as few keystrokes as possible.

You can reduce it to a mere two keys (CTRL-S) with the use of eval.

EG: Coding for OpenGL "live".

Put simply, have one extra script to run your main script repeatedly. As soon as you save the changes to disk, the next iteration of the looping run will show your changes.

If you want to get fancy, you can have the eval loop wait until the timestamp of your source file changes before re-running the script.


Comment on Re: How to write out a Perl script and run it in as few keystrokes as possible.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://995588]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (11)
As of 2014-12-18 21:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (66 votes), past polls