Easiest way is typing perl cpg4.pl at the bash prompt, This runs the perl interpreter on your program.
Another way is add a "shebang" (#!/usr/bin/perl) line at the beginning of your script and mark the script as executable with the "chmod" command, and then run it like any other executable script.
In reply to Re: how to run perl file in linux
by Anonymous Monk
in thread how to run perl file in linux
by grewal7634
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |