You are on page 1of 14

Perl

1
2
3
4
5
6
7
8

Perl
Perl

1 Perl
Perl


Web
Perl Perl
Perl

Perl Web

Perl Perl
Perl
HTML Web
Perl
Perl
Perl
Perl


Perl
perl

perl Perl

PERL Perl Practical Extraction and Report Language


PERL Perl
Perl Perl
Pathologically Eclectic Rubbish Lister

Perl
Perl
Perl

1.1 Perl
Perl PerlPerl
Perl

Perl

1.1.1 Perl
Perl Perl UNIX
Perl Windows NT Perl Windows NT
(Resource Kit)
Perl
UNIX

$

% bash% shell
Perl
Perl $

$ perl -v

command not found Perl


Perl

5 5.0045.0055.6
Perl 4.x Perl 4

Perl 4 5.005 Perl
5.6 1999
Windows Perl
1-1 MS-DOS
1-1 D O S
Perl

1 Perl

C:\> per l -v

Perl
5 DOS Bad command or file name
Perl
Macintosh 1-2 File Find Commamdf Find MacPerl Perl
Apple About MacPerl
Version 5.2.0 Patchlevel 5.004 MacPerl
1-2 Macintosh
Perl

1.1.2 Windows 95/98/NT Perl


Windows Perl

Makefile shell Perl


Perl 16 Perl
Windows Perl

Perl ActiveState Tool


Perl Windows 1-3
Perl ActiveState Community LicenseActiveState
URL http://www.ActiveState.co m
Perl Perl ActiveState
ActiveState
Perl

1-3 A c t i v e S t a t e
W i n d o w s
Perl

ActiveState Perl
Perl ActiveState Web
Perl

Perl

1.1.3 UNIX
Perl
UNIX Perl

Perl

http://ww w.perl.co m Download s


Stable Production
ANSI C Perl

UNIX
Perl LinuxSolarisAIX UNIX
Perl

Perl Stable.tar.gz

$ gunzip stable.tar.gz
$ t a r x f s t a b l e . tr a

g u n z i p

http://ww w.gnu.o rg gzip



$ sh Configure

Configure
Enter Perl
UNIX

$ make

Perl

$ make tes t
# m ak e i ns ta l l

make test Perl


make install #
Perl
make install Perl
$ perl -v

UNIX Perl
http://www.perl .com
Perl

1 Perl

1.1.4 Macintosh
Perl
Macintosh Perl MacPerl CPAN
http://ww w.perl.com/C PAN/ports/ma c
MacPerl appl.bin StuffIt Expander
MacPerl
Perl Shuck
MacPerl
MacOS 8 Internet
Advanced>File Mapping Shuck .pod
MacPerl .ph.pl.plx.pm.cgi .xs Perl
TEXT
MacOS 7 I n t e r n e t C o n f i g
InternetConfig Helpers pod shuck
MacPerl
MacPerl
http://ww w.perl.com/C PAN/ports/ma c

1.2

Perl Perl

Perl Perl
5.005 1700 FAQ
Perl
Windows UNIX Perl
perldoc perldoc
perldoc
UNIX DOS

Perl

perlfuncPerl perlopPerl
perlfaqPerl FAQ perlfunc perldoc perlfunc
perldoc perl
-tf perldoc
Perl print
$ perldoc -tf print

FAQ Perl Perl


FAQ FAQ
-q FAQ
Perl
$ p er ld o c - q su pp or t

FAQ Who Supports Perl ? Who develops it? Why is it free


?
Perl Perl
1.2.1
UNIX Perl
man yes Perl man
Perl perldoc
UNIX man
$ ma n pe rl

Microsoft Windows ActiveState Perl


HTML Web Web
C:\Perl\html

Macintosh MacPerl Shuck MacPerl
Perl 1-4
1-4 MacPerl Shuck

1 Perl

1.2.2

perldoc shell
perldoc shell PATH

Perl
Perl
Perl
Perl Perl Perl

Web Perl http://ww w.perl.co m


Perl Perl

1.3 Perl

Perl
Microsoft Windows Notepad DOS EDIT.EXE
UNIX viemacs pico
Mac MacPerl
File New
Perl Microsoft
Word Wordpad WordPerfect
Perl

1.3.1

Perl

hello

Perl Windows Macintosh



.pl .plx hello.pl
1.3.2

UNIX
Microsoft Windows MS-DOS

10

Perl

shell cd hello
DOS UNIX

C : \ P R O G R A M S >per l hell o

Perl
H el lo , wo rl d !

Bad command or file name perl : command not found


perl perl
shell PATH
Cant open perl script hello : A file or directory does not exist
Perl hello hello

syntax error Perl hello

UNIX cat DOS type


MacPerl Script Runhello perl
MacPerl File Open
MacPerl Run
1.3.3
perl hello perl
perl perl Perl
( hello)
Perl

perl
perl

hello
1.3.4 Perl
Hello :

1 Perl

11

#!/usr/bin/perl

Perl # Perl

/usr/bin/perl perl UNIX #


UNIX

Perl Web Apache #
perl
#

p ri n t "H el lo ,W or ld !\ n" ;

Perl Perl

print print
print
Perl Perl

print Hello,World! \n Perl
\n Perl

1.3.5

Perl Perl
Perl

pr int 25 61
Hello World!
Perl

Perl Perl

Perl Perl
perlstyle

12

Perl

Perl Perl
Perl
Perl Journal
http://ww w. tP j.com Perl
Obfuscated Perl Contest

1.4
Perl Perl
Perl

Perl Perl

1.5
1.5.1
Perl Perl Perl

Perl Larry Wall



Perl Perl

UNIX
Perl

# perl

/usr/bin/perl /usr/local/bin/perl
chmod hello UNIX shell chmod 755
hello hello ./hello Perl
UNIX testUNIX shell test
test shell

# Perl

perl programname
1.5.2

1) Perl perl
a.

1 Perl

13

b.
c. DOS
2) Perl
a. http://www.microsoft.co m
b. http://ww w.perl.co m
c. http://www.perl.ne t
3) Perl
a. perlsyn
b. perlop
c. perlfaq
1.5.3
1) b Perl DOS shell c

2) b
3) a perldoc perl
1.5.4
FAQ() FAQ

http://ww w.perl.co m

You might also like