What you want to do ("I run a system command with perl by pressing a button on browser") is called a CGI script.
You need
- a program called a webserver on the machine where
the command is to be executed. Example: apache
- the perl interpreter installed on the machine where
the command is to be executed
when writing the perl script you have to know that:
- the script can not take normal input
from STDIN, use (the module) CGI instead
- the script can write output to stdout, but
the first thing you print out has to be "Content-Type: text/plain\n\n" (the line breaks at the end are very important)
- there are also some complications with file permissions
and users (if we are talking about UNIX here), because
the script will be run under the privileges of the webserver,
not under your privileges.
I hope that helps in getting you started.
--
Brigitte 'I never met a chocolate I didnt like' Jellinek
http://www.horus.com/~bjelli/ http://perlwelt.horus.at