Perl Tutorial What is Perl
Short Description
Perl Tutorial. Diana Inkpen. School of Information Technology and Engineering. University of Ottawa. CSI 5180, Fall 2004. 1. What is Perl …
Website: www.site.uottawa.ca | Filesize: 110kb
Content
Perl Tutorial
Diana Inkpen
School of Information Technology and Engineering
University of Ottawa
CSI 5180, Fall 2004
1
What is Perl
.. “Practical Extraction and Report Language”.
.. Created, implemented, maintained by Larry Wall.
.. Interpreted language that is optimized for string manipulation,
I/O, and system tasks.
.. Syntax elements from the C, Bourne shell, csh, awk, sed,
grep.
.. (Unlike other interpreted languages, Perl compiles and
optimizes the code before running.)
2Some of Perl’s many strengths
.. Speed of development - edit a text file and just run it. No
separate compiler needed. Short pieces of code that do a
lot (magic operators).
.. Power - Perl’s regular expressions, easy file handling and
data manipulation.
.. Flexibility - freedom of expression.
.. Portability - Perl compilers for all platforms.
.. Extensibility - modules available on CPAN.
.. Price - free. Extra: it is fun !!
3
The “Hello, world” program
..
!#”$%%’&()*+-,
How to run the program written in the file “myfile”:
.. chmod u+x myfile
.. myfile
or
.. perl -w myfile
4…
Get the file Download here
Related Books:Related Searches: bourne shell, syntax elements, string manipulation, data manipulation, freedom of expression
Comments
Leave a Reply