There is a folder called /test which looks like this on the web:

https://www.datos.asia/test/

Go to this link to see the programs in the /test directory.There is a file called “hello.pl” that is a simple perl program.

You can run the program by clicking on it.

https://www.datos.asia/test/hello.pl

If you copy this program and change it or create your own program in the /test folder, it will work from the web.

If you are logged into the terminal, you can run this program like this..

perl hello.pl

But you have to be in the directory /test.  You could also type:

perl /test/hello.pl

Here is examples to find list the files, show them, copy, and then change to make your own file.  Try these commands in the terminal.

cd /test

pwd

/test

ls

hello.pl testpage.cgi

perl hello.pl

cp hello.pl helloyuto.pl

perl helloyuto.pl

nano helloyuto.pl

When using nano editor the ^X means [Ctrl] X

 

Creating PERL programs