Seeing that you are a High school kid who may never have heard these terms, I'll throw out a few words related to your quest for a continuously running program that starts automatically.
Such a program is called a daemon in the Linux world, or a service in the Windows world.
There are several perl modules on CPAN that can help create programs that run in this manner.
If you pose a more specific question about what you are trying to do, what research you have done, and what problem you encounter when attempting to implement such a program, I'm sure monks here will be sympathetic and helpful.
"XML is like violence: if it doesn't solve your problem, use more."
| [reply] |
You need to decide whether you want an output terminal, output to a file, where to log to, etc. Usually programs that run constantly are put into a background process or daemonized. You can daemonize most scripts with Proc::Daemon
See How to know if a perl script is put in the background too, for monitoring background processes.
Another consideration, is where you start and stop the program. If you are on linux, there are scripts that run at startup and shutdown, and you can work your script into that mechanism, for automatic start/stop with powerup/powerdown events.
You really should be more specific in what type of script you envision running.
| [reply] |
If you use Linux take a look to the examples here. Cron can take and run any perl script. If you need a time-lapse lesser than one minute you can use a daemon instead. | [reply] |
Yes. Was there another question?
True laziness is hard work
| [reply] |
C:\>perl -e while(1){}
| [reply] [d/l] |
So I just run that exactly as written? Or do I have to add something to it?
| [reply] |