Hello folks!     Introductory PERL Codes Here.




== Beginning ==    The followings are a few PERL codes, some are in parallel of C introductory :

  How to print a text? : print.pl
  How to open an external text file? : read_external_file.pl
  How to read any filename?: read_any_filename.pl
  How to write an external file? : write_external_file.pl
  How to handle different folders?: filename_with_folder.pl
  What is regular expression? : regular_expression.pl
How to access Unix_Linux command?: unix_command_access.pl
How to substitute a pattern of text?: substitution.pl

== Where ==    Where is the PERL interpreter in my Linux, Unix or Mac_OSX? :

Most likely it locates at /usr/bin/perl . Check it up with
the following command.
$ whereis perl

If you can't find it, reload your OS as a developer level. Once you
locate it in your system, point your magic bang at the beginning of
PERL codes to there.
#! /usr/bin/perl -w

This is the same way as in Bourne or BASH shell scripts.
The option switch [ -w ] helps a lot with warning messages.

Make sure your PERL scripts are placed in a directory which is one
of the reading PATHs. Make sure the script's permission is set to
executable such as 755 or 777. The 007 (a covert agent) may not
work in this situation, so you better check it out. Usually the
owner and the group should have the higher power.

==  Bibliography  ==    The references all you need are,

1. [ Learning Perl ] by Randal L. Schwartz & Tom Christiansen; such as Second Edition (1997) ISBN: 1-56592-284-0, O'Reilly & Associates, Inc., Sebatopol, CA 95472.
2. [ Programming Perl ] by Larry Wall, Tom Christiansen & Randal L. Schwartz; such as Second Edition (1996) ISBN: 1-56592-149-6, O'Reilly & Associates, Inc., Sebastopol, CA 95472.
3. [ Google searches ]




Copyright ©: General Public License (GPL).