Beginning Perl: [Perl for those who missed it the first time around: learn about the duct tape for the web, the cloud and system administration ; covers Perl 5.10]
Gespeichert in:
Hauptverfasser: | , |
---|---|
Format: | Buch |
Sprache: | English |
Veröffentlicht: |
[Berkeley, Calif.]
Apress
2010
New York, NY Springer |
Ausgabe: | 3. ed. |
Schriftenreihe: | The expert's voice in open source
Books for professionals by professionals |
Schlagworte: | |
Online-Zugang: | Inhaltsverzeichnis |
Beschreibung: | Includes index |
Beschreibung: | XXIX, 428 S. graph. Darst. 24 cm |
ISBN: | 9781430227939 9781430227946 |
Internformat
MARC
LEADER | 00000nam a2200000 c 4500 | ||
---|---|---|---|
001 | BV036779735 | ||
003 | DE-604 | ||
005 | 20101209 | ||
007 | t | ||
008 | 101116s2010 d||| |||| 00||| eng d | ||
020 | |a 9781430227939 |c pbk. : 39,99 |9 978-1-430-22793-9 | ||
020 | |a 9781430227946 |9 978-1-430-22794-6 | ||
035 | |a (OCoLC)705973490 | ||
035 | |a (DE-599)GBV621455180 | ||
040 | |a DE-604 |b ger | ||
041 | 0 | |a eng | |
049 | |a DE-83 |a DE-824 |a DE-92 | ||
084 | |a ST 250 |0 (DE-625)143626: |2 rvk | ||
100 | 1 | |a Lee, James |e Verfasser |4 aut | |
245 | 1 | 0 | |a Beginning Perl |b [Perl for those who missed it the first time around: learn about the duct tape for the web, the cloud and system administration ; covers Perl 5.10] |c James Lee with Simon Cozens |
250 | |a 3. ed. | ||
264 | 1 | |a [Berkeley, Calif.] |b Apress |c 2010 | |
264 | 1 | |a New York, NY |b Springer | |
300 | |a XXIX, 428 S. |b graph. Darst. |c 24 cm | ||
336 | |b txt |2 rdacontent | ||
337 | |b n |2 rdamedia | ||
338 | |b nc |2 rdacarrier | ||
490 | 0 | |a The expert's voice in open source | |
490 | 0 | |a Books for professionals by professionals | |
500 | |a Includes index | ||
650 | 0 | 7 | |a Perl |g Programmiersprache |0 (DE-588)4307836-9 |2 gnd |9 rswk-swf |
655 | 7 | |0 (DE-588)4151278-9 |a Einführung |2 gnd-content | |
689 | 0 | 0 | |a Perl |g Programmiersprache |0 (DE-588)4307836-9 |D s |
689 | 0 | |5 DE-604 | |
700 | 1 | |a Cozens, Simon |e Verfasser |4 aut | |
856 | 4 | 2 | |m GBV Datenaustausch |q application/pdf |u http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=020696422&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |3 Inhaltsverzeichnis |
999 | |a oai:aleph.bib-bvb.de:BVB01-020696422 |
Datensatz im Suchindex
_version_ | 1804143454521917440 |
---|---|
adam_text | IMAGE 1
BEGINNING PERL THIRD EDITION
JAMES LEE WITH SIMON COZENS
APRESS
IMAGE 2
ABOUT THE AUTHOR... XVI
ABOUT THE TECHNICAL REVIEWERS XVII
ACKNOWLEDGEMENTS XVIII
SUITRODYETION . XIX.
CHAPTER 1: FIRST STEPS IN PERL.. 1
PROGRAMMING LANGUAGES 1
OUR FIRST PERL PROGRAM 2
PROGRAM STRUCTURE 6
CHARACTER SETS 8
ESCAPE SEQUENCES -8
WHITESPACE 9
NUMBER SYSTEMS 9
THE PERL DEBUGGER 11
SUMMARY 11
EXERCISES 12
CHAPTER 2: SCALARS 13
TYPES OF DATA 13
NUMBERS 14
STRINGS 17
HERE-DOCUMENTS 20
CONVERTING BETWEEN NUMBERS AND STRINGS 21
V
IMAGE 3
CONTENTS
OPERATORS 22
NUMERIC OPERATORS 22
STRING OPERATORS 32
OPERATORS TO BE COVERED LATER 36
OPERATOR PRECEDENCE 37
VARIABLES 38
SCOPING 43
VARIABLE NAMES 46
VARIABLE INTERPOLATION 46
CURRENCY CONVERTER 48
TWO MISCELLANEOUS FUNCTIONS 50
THE EXIT() FUNCTION 50
THE DIE() FUNCTION 51
SUMMARY 52
EXERCISES 52
CHAPTER 3: CONTROL FLOW CONSTRUCTS .....53
THE IF STATEMENT 54
OPERATORS REVISITED 55
MULTIPLE CHOICE: IF... ELSE 61
THE UNLESS STATEMENT 64
EXPRESSION MODIFIERS 65
USING SHORT-CIRCUITED EVALUATION 65
LOOPING CONSTRUCTS 66
THE WHILE LOOP 66
WHILE ( STDIN ) 67
INFINITE LOOPS 69
LOOPING UNTIL 70
THE FOR LOOP 71
VI
IMAGE 4
CONTENTS
THEFOREACH LOOP I
DO ..WHILE AND DO ..UNTIL 72
LOOP CONTROL CONSTRUCTS 74
BREAKING OUT 74
GOING ON TO THE NEXT 75
REEXECUTING THE LOOP 76
LOOP LABELS 77
GOTO 79
SUMMARY 79
EXERCISES 79
CHAPTER 4: LISTS AND ARRAYS -81
LISTS 81
SIMPLE LISTS 82
MORE COMPLEX LISTS 83
CREATING LISTS EASILY WITH QW// 84
ACCESSING LIST VALUES 87
ARRAYS 91
ASSIGNING ARRAYS 91
SCALAR VS. LIST CONTEXT 94
ADDING TO AN ARRAY 95
ACCESSING AN ARRAY 95
SUMMARY 114
EXERCISES 114
CHAPTER 5: HASHES 115
CREATING A HASH 115
WORKING WITH HASH VALUES 117
HASH IN LIST CONTEXT 119
IMAGE 5
CONTENTS
HASH IN SCALAR CONTEXT 120
HASH FUNCTIONS 121
THE KEYS() FUNCTION 121
THE VALUESQ FUNCTION 122
THE EACH() FUNCTION 123
THE DELETE() FUNCTION 123
THE EXISTS() FUNCTION 124
HASH EXAMPLES 125
CREATING READABLE VARIABLES 125
REVERSING INFORMATION 125
COUNTING THINGS 126
SUMMARY 129
EXERCISES 129
CHAPTER 6: SUBROUTINES/FUNCTIONS .131
UNDERSTANDING SUBROUTINES 132
DEFINING A SUBROUTINE 132
INVOKING A SUBROUTINE 133
ORDER OF DECLARATION AND INVOKING FUNCTIONS 134
PASSING ARGUMENTS INTO FUNCTIONS 137
RETURN VALUES 139
THE RETURN STATEMENT 141
UNDERSTANDING SCOPE 142
GLOBAL VARIABLES 142
INTRODUCTION TO PACKAGES 144
LEXICAL VARIABLES (AKA LOCAL VARIABLES) 146
SOME IMPORTANT NOTES ON PASSING ARGUMENTS 147
FUNCTION ARGUMENTS PASSED BY REFERENCE 147
LISTS ARE ONE-DIMENSIONAL 149
VIII
IMAGE 6
CONTENTS
DEFAULT ARGUMENT VALUES 150
NAMED PARAMETERS 151
SUMMARY 152
EXERCISES ...152
CHAPTER 7: REGULAR EXPRESSIONS -153
WHAT ARE THEY? 153
PATTERNS 154
WORKING WITH REGEXES 170
SUBSTITUTION 170
CHANGING DELIMITERS 172
MODIFIERS 173
THE SPLIT() FUNCTION 174
THE JOIN() FUNCTION 175
COMMON BLUNDERS 175
SUMMARY 176
EXERCISES 177
CHAPTER 8: FILES AND DATA 179
FILEHANDLES 179
THE OPEN() FUNCTION 179
THE CLOSE() FUNCTION 180
THREE WAYS TO OPEN A FILE 181
READ MODE 182
READING IN SCALAR CONTEXT 183
READING WITH THE DIAMOND 185
@ARGV: THE COMMAND-LINE ARGUMENTS 187
@ARGV AND 189
SARGV 190
READING IN LIST CONTEXT 190
L
IMAGE 7
CONTENTS
WRITING TO FILES 192
BUFFERING 195
OPENING PIPES 196
RECEIVING PIPED DATA FROM A PROCESS 196
SENDING PIPED DATA TO ANOTHER PROCESS 198
BIDIRECTIONAL PIPES 200
FILE TESTS 200
SUMMARY 205
EXERCISES 205
CHAPTER 9: STRING PROCESSING 207
CHARACTER POSITION 207
STRING FUNCTIONS 208
THE LENGTHTJ FUNCTION 208
THE INDEX() FUNCTION 208
THE RINDEX() FUNCTION 210
THE SUBSTRF) FUNCTION 210
TRANSLITERATION 212
SUMMARY 213
EXERCISES 213
CHAPTER 10: INTERFACING TO THE OPERATING SYSTEM 215
THE %ENV HASH 215
WORKING WITH FILES AND DIRECTORIES 217
FILE GLOBBING WITH GLOB() 217
READING DIRECTORIES 220
FUNCTIONS TO WORK WITH FILES AND DIRECTORIES 221
EXECUTING EXTERNAL PROGRAMS 225
THE SYSTEM() FUNCTION 225
IMAGE 8
CONTENTS
BACKQUOTES 227
THERE S MORE 228
SUMMARY 228
EXERCISES 229
CHAPTER 11: REFERENCES 231
WHAT IS A REFERENCE? 231
ANONYMITY 232
THE LIFE CYCLE OF A REFERENCE 232
REFERENCE CREATION 232
REFERENCE MODIFICATION 239
REFERENCE COUNTING AND DESTRUCTION 243
USING REFERENCES FOR COMPLEX DATA STRUCTURES 244
MATRICES 245
AUTOVIVIFICATION 245
TREES 250
SUMMARY 255
EXERCISES 255
CHAPTER 12: MODULES 257
WHY DO WE NEED THEM? 257
CREATING A MODULE 258
INCLUDING OTHER FILES WITH USE 260
DO 260
REQUIRE 261
USE 262
CHANGING @INC 262
PACKAGE HIERARCHIES 263
EXPORTERS 265
IMAGE 9
CONTENTS
THE PERL STANDARD MODULES - 267
ONLINE DOCUMENTATION 268
DATA::DUMPER 268
FILE-FIND 270
GETOPT::STD
271
6ETOPT::LONG
272
FILE::SPEC 273
BENCHMARK 275
WIN32 276
CPAN 278
INSTALLING MODULES WITH PPM 280
INSTALLING A MODULE MANUALLY 281
THE CPAN MODULE 281
BUNDLES 284
SUBMITTING YOUR OWN MODULE TO CPAN 285
SUMMARY 286
CHAPTER 13: OBJECT-ORIENTED PERL. ....287
00 BUZZWORDS 287
OBJECTS 287
ATTRIBUTES 288
METHODS 288
CLASSES 289
POLYMORPHISM 290
ENCAPSULATION 290
INHERITANCE 290
CONSTRUCTORS 291
DESTRUCTORS 292
AN EXAMPLE 292
XII
IMAGE 10
CONTENTS
ROLLING YOUR OWN CLASSES 295
BLESS YOU, MY REFERENCE 296
STORING ATTRIBUTES 298
THE CONSTRUCTOR 298
CREATING METHODS 301
DO YOU NEED 00? ..-313
ARE YOUR SUBROUTINES TASKS? 314
DO YOU NEED PERSISTENCE? 314
DO YOU NEED SESSIONS? 314
DO YOU NEED SPEED? 314
DO YOU WANT THE USER TO BE UNAWARE OF THE OBJECT? 314
ARE YOU STILL UNSURE? 314
SUMMARY 315
EXERCISES 315
CHAPTER 14: INTRODUCTION TO CGI . 317
WE NEED A WEB SERVER , 318
CREATING A CGI DIRECTORY 318
WRITING CGI PROGRAMS 318
HELLO, WORLD! IN CGI 319
THE CGI ENVIRONMENT 321
GENERATING HTML 323
INTRODUCING CGI.PM 325
CONVENTIONAL STYLE OF CALLING METHODS 331
CGI.PM METHODS 332
METHODS THAT GENERATE SEVERAL TAGS 332
METHODS THAT GENERATE ONE TAG 333
PROCESSING FORM DATA 333
THE PARAM() METHOD 335
XIII
IMAGE 11
CONTENTS
DYNAMIC CGI 336
LET S PLAY CHESS! 338
IMPROVEMENTS WE CAN MAKE 346
WHAT WE DID NOT TALK ABOUT 347
SUMMARY 348
EXERCISES 348
CHAPTER 15: PERL AND DBI 349
INTRODUCTION TO RELATIONAL DATABASES 349
WE NEED AN SQL SERVER-MYSQL 353
TESTING THE MYSQL SERVER 353
CREATING A DATABASE 354
CREATING A NON-ROOT USER WITH THE GRANT COMMAND 357
THE INSERT COMMAND 358
THE SELECT COMMAND 361
TABLE JOINS 367
INTRODUCTION TO DBI 368
INSTALLING DBI AND THE DBD::MYSQL 368
CONNECTING TO THE MYSQL DATABASE 369
EXECUTING AN SQL QUERY WITH DBI 370
A MORE COMPLEX EXAMPLE 372
USE PLACEHOLDERS 375
DBI AND TABLE JOINS 377
PERL, DBI, AND CGI 378
WHAT WE DIDN T TALK ABOUT 385
SUMMARY 386
EXERCISES 386
APPENDIX: EXERCISE SOLUTIONS 387
XIV
IMAGE 12
CONTENTS
CHAPTER 1 387
CHAPTER 2 387
CHAPTER 3 389
CHAPTER 4 390
CHAPTER 5 391
CHAPTER 6 393
CHAPTER 7 395
CHAPTER 8 396
CHAPTER 9 398
CHAPTER 10 399
CHAPTER 11 , 400
CHAPTER 13 404
CHAPTER 14 405
CHAPTER 15 406
INDEX 409
XV
|
any_adam_object | 1 |
author | Lee, James Cozens, Simon |
author_facet | Lee, James Cozens, Simon |
author_role | aut aut |
author_sort | Lee, James |
author_variant | j l jl s c sc |
building | Verbundindex |
bvnumber | BV036779735 |
classification_rvk | ST 250 |
ctrlnum | (OCoLC)705973490 (DE-599)GBV621455180 |
discipline | Informatik |
edition | 3. ed. |
format | Book |
fullrecord | <?xml version="1.0" encoding="UTF-8"?><collection xmlns="http://www.loc.gov/MARC21/slim"><record><leader>01689nam a2200409 c 4500</leader><controlfield tag="001">BV036779735</controlfield><controlfield tag="003">DE-604</controlfield><controlfield tag="005">20101209 </controlfield><controlfield tag="007">t</controlfield><controlfield tag="008">101116s2010 d||| |||| 00||| eng d</controlfield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">9781430227939</subfield><subfield code="c">pbk. : 39,99</subfield><subfield code="9">978-1-430-22793-9</subfield></datafield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">9781430227946</subfield><subfield code="9">978-1-430-22794-6</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(OCoLC)705973490</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(DE-599)GBV621455180</subfield></datafield><datafield tag="040" ind1=" " ind2=" "><subfield code="a">DE-604</subfield><subfield code="b">ger</subfield></datafield><datafield tag="041" ind1="0" ind2=" "><subfield code="a">eng</subfield></datafield><datafield tag="049" ind1=" " ind2=" "><subfield code="a">DE-83</subfield><subfield code="a">DE-824</subfield><subfield code="a">DE-92</subfield></datafield><datafield tag="084" ind1=" " ind2=" "><subfield code="a">ST 250</subfield><subfield code="0">(DE-625)143626:</subfield><subfield code="2">rvk</subfield></datafield><datafield tag="100" ind1="1" ind2=" "><subfield code="a">Lee, James</subfield><subfield code="e">Verfasser</subfield><subfield code="4">aut</subfield></datafield><datafield tag="245" ind1="1" ind2="0"><subfield code="a">Beginning Perl</subfield><subfield code="b">[Perl for those who missed it the first time around: learn about the duct tape for the web, the cloud and system administration ; covers Perl 5.10]</subfield><subfield code="c">James Lee with Simon Cozens</subfield></datafield><datafield tag="250" ind1=" " ind2=" "><subfield code="a">3. ed.</subfield></datafield><datafield tag="264" ind1=" " ind2="1"><subfield code="a">[Berkeley, Calif.]</subfield><subfield code="b">Apress</subfield><subfield code="c">2010</subfield></datafield><datafield tag="264" ind1=" " ind2="1"><subfield code="a">New York, NY</subfield><subfield code="b">Springer</subfield></datafield><datafield tag="300" ind1=" " ind2=" "><subfield code="a">XXIX, 428 S.</subfield><subfield code="b">graph. Darst.</subfield><subfield code="c">24 cm</subfield></datafield><datafield tag="336" ind1=" " ind2=" "><subfield code="b">txt</subfield><subfield code="2">rdacontent</subfield></datafield><datafield tag="337" ind1=" " ind2=" "><subfield code="b">n</subfield><subfield code="2">rdamedia</subfield></datafield><datafield tag="338" ind1=" " ind2=" "><subfield code="b">nc</subfield><subfield code="2">rdacarrier</subfield></datafield><datafield tag="490" ind1="0" ind2=" "><subfield code="a">The expert's voice in open source</subfield></datafield><datafield tag="490" ind1="0" ind2=" "><subfield code="a">Books for professionals by professionals</subfield></datafield><datafield tag="500" ind1=" " ind2=" "><subfield code="a">Includes index</subfield></datafield><datafield tag="650" ind1="0" ind2="7"><subfield code="a">Perl</subfield><subfield code="g">Programmiersprache</subfield><subfield code="0">(DE-588)4307836-9</subfield><subfield code="2">gnd</subfield><subfield code="9">rswk-swf</subfield></datafield><datafield tag="655" ind1=" " ind2="7"><subfield code="0">(DE-588)4151278-9</subfield><subfield code="a">Einführung</subfield><subfield code="2">gnd-content</subfield></datafield><datafield tag="689" ind1="0" ind2="0"><subfield code="a">Perl</subfield><subfield code="g">Programmiersprache</subfield><subfield code="0">(DE-588)4307836-9</subfield><subfield code="D">s</subfield></datafield><datafield tag="689" ind1="0" ind2=" "><subfield code="5">DE-604</subfield></datafield><datafield tag="700" ind1="1" ind2=" "><subfield code="a">Cozens, Simon</subfield><subfield code="e">Verfasser</subfield><subfield code="4">aut</subfield></datafield><datafield tag="856" ind1="4" ind2="2"><subfield code="m">GBV Datenaustausch</subfield><subfield code="q">application/pdf</subfield><subfield code="u">http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=020696422&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA</subfield><subfield code="3">Inhaltsverzeichnis</subfield></datafield><datafield tag="999" ind1=" " ind2=" "><subfield code="a">oai:aleph.bib-bvb.de:BVB01-020696422</subfield></datafield></record></collection> |
genre | (DE-588)4151278-9 Einführung gnd-content |
genre_facet | Einführung |
id | DE-604.BV036779735 |
illustrated | Illustrated |
indexdate | 2024-07-09T22:47:55Z |
institution | BVB |
isbn | 9781430227939 9781430227946 |
language | English |
oai_aleph_id | oai:aleph.bib-bvb.de:BVB01-020696422 |
oclc_num | 705973490 |
open_access_boolean | |
owner | DE-83 DE-824 DE-92 |
owner_facet | DE-83 DE-824 DE-92 |
physical | XXIX, 428 S. graph. Darst. 24 cm |
publishDate | 2010 |
publishDateSearch | 2010 |
publishDateSort | 2010 |
publisher | Apress Springer |
record_format | marc |
series2 | The expert's voice in open source Books for professionals by professionals |
spelling | Lee, James Verfasser aut Beginning Perl [Perl for those who missed it the first time around: learn about the duct tape for the web, the cloud and system administration ; covers Perl 5.10] James Lee with Simon Cozens 3. ed. [Berkeley, Calif.] Apress 2010 New York, NY Springer XXIX, 428 S. graph. Darst. 24 cm txt rdacontent n rdamedia nc rdacarrier The expert's voice in open source Books for professionals by professionals Includes index Perl Programmiersprache (DE-588)4307836-9 gnd rswk-swf (DE-588)4151278-9 Einführung gnd-content Perl Programmiersprache (DE-588)4307836-9 s DE-604 Cozens, Simon Verfasser aut GBV Datenaustausch application/pdf http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=020696422&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA Inhaltsverzeichnis |
spellingShingle | Lee, James Cozens, Simon Beginning Perl [Perl for those who missed it the first time around: learn about the duct tape for the web, the cloud and system administration ; covers Perl 5.10] Perl Programmiersprache (DE-588)4307836-9 gnd |
subject_GND | (DE-588)4307836-9 (DE-588)4151278-9 |
title | Beginning Perl [Perl for those who missed it the first time around: learn about the duct tape for the web, the cloud and system administration ; covers Perl 5.10] |
title_auth | Beginning Perl [Perl for those who missed it the first time around: learn about the duct tape for the web, the cloud and system administration ; covers Perl 5.10] |
title_exact_search | Beginning Perl [Perl for those who missed it the first time around: learn about the duct tape for the web, the cloud and system administration ; covers Perl 5.10] |
title_full | Beginning Perl [Perl for those who missed it the first time around: learn about the duct tape for the web, the cloud and system administration ; covers Perl 5.10] James Lee with Simon Cozens |
title_fullStr | Beginning Perl [Perl for those who missed it the first time around: learn about the duct tape for the web, the cloud and system administration ; covers Perl 5.10] James Lee with Simon Cozens |
title_full_unstemmed | Beginning Perl [Perl for those who missed it the first time around: learn about the duct tape for the web, the cloud and system administration ; covers Perl 5.10] James Lee with Simon Cozens |
title_short | Beginning Perl |
title_sort | beginning perl perl for those who missed it the first time around learn about the duct tape for the web the cloud and system administration covers perl 5 10 |
title_sub | [Perl for those who missed it the first time around: learn about the duct tape for the web, the cloud and system administration ; covers Perl 5.10] |
topic | Perl Programmiersprache (DE-588)4307836-9 gnd |
topic_facet | Perl Programmiersprache Einführung |
url | http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=020696422&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |
work_keys_str_mv | AT leejames beginningperlperlforthosewhomisseditthefirsttimearoundlearnabouttheducttapeforthewebthecloudandsystemadministrationcoversperl510 AT cozenssimon beginningperlperlforthosewhomisseditthefirsttimearoundlearnabouttheducttapeforthewebthecloudandsystemadministrationcoversperl510 |