Index of /examples/perl/examples

[ICO]NameLast modifiedSizeDescription

[PARENTDIR]Parent Directory   -  
[DIR]basic/ 2021-05-21 09:33 -  
[DIR]advanced/ 2021-05-24 12:16 -  

RCS Perl examples

Directory Structure

General Notes on Perl

1. Perl is a system tool shipped with Linux OS, you can check with the following command:

[examples]$ which perl
/usr/local/bin/perl
[examples]$ perl -v

This is perl 5, version 16, subversion 3 (v5.16.3) built for x86_64-linux-thread-multi
(with 44 registered patches, see perl -V for more detail)

Copyright 1987-2012, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

[yshen16@scc-wb3 examples]$

From the above command, you can see the system Perl is installed in '/usr/local/bin/perl'. And the version is 5.16.3.
2. There are also newer versions of Perl available on SCC as modules. To view them, execute the following:

    [scc1 ] module avail perl

---------------------------------------------------------------- /share/module.7/programming -----------------------------------------------------------------
   perl/5.28.1 (D)    perl/5.30.1

  Where:
   D:  Default Module

There are two Perl versions installed on SCC as module, Perl/5.28.1 and Perl/5.30.1. There are many extra packages installed within these two Perl modules that provide more functions which are not available in system Perl. This is usually the reason you will need to use one of them instead of using the system Perl. For example, to use Perl 5.28.1, you may load:


    [scc1 ] module load perl/5.28.1

3. Get Perl help:

    [scc1 ]  perl -h

4.Use 'perldoc' to get detailed help on specific topic:
Check all available perldoc help summary:

    [scc1 ]  perldoc -h 

Below is an example to use perldoc to get help on Perl function 'print':

    [scc1 ]  perldoc -f print
At the end, you can use 'q' key to exit from the help screen.

Perl Reference links

Contact Information

Research Computing Services: help@scc.bu.edu

Note: RCS example programs are provided "as is" without any warranty of any kind. The user assumes the intire risk of quality, performance, and repair of any defect. You are welcome to copy and modify any of the given examples for your own use.