Perl: Difference between revisions

From DWIKI
No edit summary
No edit summary
Line 6: Line 6:
<br /><br />
<br /><br />
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.</blockquote>
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.</blockquote>
----


{| style="width:600px;" border="0"
{| style="width:600px;" border="0"
Line 12: Line 14:
| [http://search.cpan.org/ http://search.cpan.org/] || Search the '''Comprehensive Perl Archive Network'''
| [http://search.cpan.org/ http://search.cpan.org/] || Search the '''Comprehensive Perl Archive Network'''
|}
|}
= command line tips =
Check the validity of your scripts:
  perl -c <scriptname>
 
With additional library paths:
  perl -I ../somelib -c <scriptname>
Alter a file by changing all '''FOO''''s by '''BAR''''s:
  perl -pi -e 's!FOO!BAR!' <filename>


[[Category:scripting]]
[[Category:scripting]]

Revision as of 00:03, 10 February 2007

Practical Extraction and Report Language

-or- Pathologically Eclectic Rubbish Lister

From the Wikipedia:

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.


Usefull links
http://search.cpan.org/ Search the Comprehensive Perl Archive Network

command line tips

Check the validity of your scripts:

 perl -c <scriptname>
 

With additional library paths:

 perl -I ../somelib -c <scriptname>

Alter a file by changing all FOO's by BAR's:

 perl -pi -e 's!FOO!BAR!' <filename>