The Visibooks Guide to Perl Basics.pdf
(
10347 KB
)
Pobierz
The Visibooks Guide to PERL Basics
Table of Contents
Learning the Basics ........................................ 1
Install an FTP program ......................................................................2
Create a simple script......................................................................14
Upload a script .................................................................................20
Set script permissions ....................................................................24
Run a script from a Web page ........................................................26
Insert comments ..............................................................................31
Format text output with HTML tags ................................................34
Working with Variables................................. 45
Employ single variables ..................................................................47
Print quotation marks ......................................................................58
Employ lists of variables .................................................................67
Working with Numbers ................................. 79
Perform calculations .......................................................................80
Increment/decrement automatically ...............................................83
Generate random numbers .............................................................86
TABLE OF CONTENTS
i
Subroutines ...................................................93
Create a subroutine......................................................................... 94
Parse form data with a subroutine................................................. 97
Parse form data ............................................................................... 99
Logic & Loops..............................................107
Employ conditional logic .............................................................. 108
Employ looping.............................................................................. 128
Working With Files.......................................137
Create a text file............................................................................. 138
Display files.................................................................................... 144
Append to files............................................................................... 146
ii
TABLE OF CONTENTS
Learning the Basics
In this section, you’ll learn how to:
•
Install an FTP program
•
Create a simple script
•
Upload a script
•
Set script permissions
•
Run a script from a Web page
•
Insert comments
•
Format text output with HTML tags
LEARNING THE BASICS
1
Install an FTP program
1.
Open your Web browser and go to:
www.ipswitch.com
2.
Download and install WS_FTP Home.
WS_FTP
FTP stands for File Transfer Protocol, a way to transfer files between
computers over the Internet. If you have trouble configuring
FrontPage to upload pages to a Web server, use an FTP program.
Using an FTP program is the most straightforward way to upload a
Web site to a Web server. WS_FTP is the most popular FTP program
used to upload and download Web pages.
The Home version is free to use for 30 days, and can be downloaded
at www.ipswitch.com.
2
LEARNING THE BASICS
Plik z chomika:
musli_com
Inne pliki z tego folderu:
Advanced Perl Programming.pdf
(5210 KB)
CoursPerl.pdf
(7969 KB)
Beginning Perl - Wrox 2000.pdf
(4033 KB)
Bioinformatics Biocomputing and Perl - Wiley 2004.pdf
(3442 KB)
apprenez-a-programmer-en-perl.pdf
(1163 KB)
Inne foldery tego chomika:
3D Design - Programming
ActionScript
Actionscript - Flash - Flex - Air
Ada
ADO
Zgłoś jeśli
naruszono regulamin