Perl: Difference between revisions
Jump to navigation
Jump to search
imported>Alex Bravo mNo edit summary |
imported>Ori Redler (Copied from WP) |
||
Line 1: | Line 1: | ||
'''Perl''' is a [[dynamic programming language]] created by [[Larry Wall]] and first released in [[1987]]. Perl borrows features from a variety of other languages including [[C (programming language)|C]], [[Unix shell|shell]] scripting ([[Bourne shell|sh]]), [[AWK programming language|AWK]], [[sed]] and [[Lisp programming language|Lisp]]. | '''Perl''' is a [[dynamic programming language]] created by [[Larry Wall]] and first released in [[1987]]. Perl borrows features from a variety of other languages, including [[C (programming language)|C]], [[Unix shell|shell]] scripting ([[Bourne shell|sh]]), [[AWK programming language|AWK]], [[sed]] and [[Lisp programming language|Lisp]]. | ||
Structurally, Perl is based on the brace-delimited block style of AWK and C, and was widely adopted for its strengths in string processing, and lack of the arbitrary limitations of many [[scripting language]]s at the time. | Structurally, Perl is based on the brace-delimited block style of AWK and C, and was widely adopted for its strengths in string processing, and lack of the arbitrary limitations of many [[scripting language]]s at the time. | ||
Line 19: | Line 19: | ||
* [http://www.perl.org/ Perl.org] - Official Perl website | * [http://www.perl.org/ Perl.org] - Official Perl website | ||
[[Category:CZ Live]] | [[Category:CZ Live]] | ||
[[Category:Computers Workgroup]] | [[Category:Computers Workgroup]] |
Revision as of 21:05, 7 March 2007
Perl is a dynamic programming language created by Larry Wall and first released in 1987. Perl borrows features from a variety of other languages, including C, shell scripting (sh), AWK, sed and Lisp.
Structurally, Perl is based on the brace-delimited block style of AWK and C, and was widely adopted for its strengths in string processing, and lack of the arbitrary limitations of many scripting languages at the time.
Syntax
Hello World
#!/usr/bin/perl print "Hello, world!\n";
Analysis of the example
- The
#!/usr/bin/perl
line is only useful for Unix-like systems, as this tells the operating system to execute this file with the Perl binary located at /usr/bin. print "Hello world!\n";
printsHello world!
and a new line (\n
) to STDOUT (standard ouput). The trailing semicolon is the end of statement marker in Perl.
External links
- Perl.org - Official Perl website