Basic HTML version of Foils prepared Sept 20 97

Foil 4 General Remarks on PERL II

From Tutorial on PERL Computational Science for Information Age Course CPS616 -- Sept 20 97. by Geoffrey C. Fox,Nancy McCracken,Tom Scavo


PERL code is usually put in a file and executed at the command line with
  • % perl -w myfile # w = warning msgs
where myfile contains PERL source code.
PERL code may also be put in an executable file (chmod +x on UNIX) whose first line is
  • #!/usr/local/bin/perl -w
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



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sun Sep 21 1997