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


1 PERL code is usually put in a file and executed at the command line with
  • % perl -w myfile # w = warning msgs
2 where myfile contains PERL source code.
3 PERL code may also be put in an executable file (chmod +x on UNIX) whose first line is
  • #!/usr/local/bin/perl -w
4 where the path depends on your installation. (CGI scripts written in PERL must have such a line.) In this case, simply type
5 % myfile
6 to compile and execute the code

in Table To:


© 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