If you can't read please download the document
Upload
s-storm
View
300
Download
2
Embed Size (px)
Citation preview
. (5.6)
,-
Perl
Practical Extraction and Report Language
1987 ., Larry Wall, Usenet
:
shellsedawkLisp
Pearl
Larry Wall
: :
:
rn - Usenet client
patch
Perl
1. 2. 3. () Larry Wall, Camel book
, , . , , , , . , . , , . , . , zaps . , ( ) , .
Perl
-
:
Perl
TIMTOWTDI
"There is more than one way to do it": " -"
( ),
DWIM (Do What I Mean - " , ")
": 252, , ,
$$foo ; , , , .
@@foo .
-%%foo -; , . .
$foo FOO , / .
&&foo , , .
if ($a==5) {$b=4;}$b=4 if ($a==5);($a==5) && $b=4;
################################
unless ($a==5) {$b=4;}$b=4 unless ($a==5);($a==5) || $b=4;
open FILE, "data.txt";
$a = ;print $a;
@b = ;print @b;
close FILE;
CPAN
Comprehensive Perl Archive Network Perl
www.cpan.org
2010-12-18 online since 1995-10-268158 MB 228 mirrors8630 authors 18922 modules
http://xkcd.com/224/
Perl
1. Perl
2. Perl is write-only: /-/
CPAN
TIOBE.com
Perl is write-only
Perl Best Practices
Perl::Tidy
Perl::Critic
Test::*
!
?