PERL code is usually put in a file and executed at the command line with
|
where myfile contains PERL source code. |
PERL code may also be put in an executable file (chmod +x on UNIX) whose first line is
|
where the path depends on your installation. (CGI scripts written in PERL must have such a line.) In this case, simply type |
% myfile |
to compile and execute the code |