IntermediatePerl(影印版)

IntermediatePerl(影印版)

《IntermediatePerl(影印版)》是2008年東南大學出版社出版的書籍。

基本介紹

  • 書名:IntermediatePerl
  • 作者:施瓦茨,菲尼克斯
  • 出版社東南大學出版社
  • 出版時間:2008年
  • 定價:48 元
  • 開本:16 開
  • ISBN:9787564112356
內容簡介,編輯推薦,目錄,

內容簡介

Perl是一種靈活多變、功能強大的程式語言,可以套用在從系統管理到網路編程再到資料庫操作等很多方面。人們常說Perl讓容易的事情變簡單、讓困難的事情變得可行。《IntermediatePerl》正是關於如何將技能從處理簡單任務躍升到勝任困難任務的書籍。《IntermediatePerl》是為了把Perl作為一種程式語言來學習,而不僅是為了寫腳本而著。這本書把Perl愛好者變為Perl程式設計師。
從一個Perl愛好者到一個Perl程式設計師。《IntermediatePerl》將教您如何把Perl作為程式語言來使用,而不僅只是作為一種腳本語言。《IntermediatePerl》提供對Perl中級編程優雅而仔細的介紹。由暢銷的《學習Perl》作者所著,本書提供了《學習Perl》沒有涵蓋的內容。
主題包括:
包和命名空間
引用和作用域
操作複雜數據結構
面向對象編程
編寫和使用模組
測試Perl代碼
為CPAN貢獻代碼
參照《學習Perl》的成功編排格式,本書的每一章都短小到可以在一到兩個小時內讀完,並在結束時提供一系列練習題幫助您實踐剛剛學到的知識。使用本書,您只需熟悉《學習Perl》的內容並有更進一步學習的決心。
對於不同的人而言Perl是一種不同的語言。對於某些人而言,它只是快速編寫腳本的工具,但對於另外的人來說,它就是一種功能完整的面向對象語言。Perl被套用在各種任務當中,從對文本檔案進行快速全局替換,到計算需要數星期才能完成處理的海量複雜科學數據。您的使用決定Perl的面貌。但不論您將Perl套用在什麼方面,本書將幫助您讓套用更加有效、高效和優雅。

編輯推薦

“這是本多么閃耀奪目的Perl書籍啊這本書為那些渴望提高技能或者提升職業生涯的Perl程式設計師填補了空白。更為重要的是,看這本書有一種向大師學習的感覺。”
——RussellJ.T.Dyer,UnixReview com

目錄

Foreword.xiii
Prefacexv
1.Introduction1
WhatShouldYouKnowAlready?2
WhatAboutAllThoseFootnotes?2
What’swiththeExercises?2
WhatIfI’maPerlCourseInstructor?3
2.IntermediateFoundations4
ListOperators4
TrappingErrorswitheval8
DynamicCodewitheval9
Exercises10
3.UsingModules11
TheStandardDistribution11
UsingModules12
FunctionalInterfaces12
SelectingWhattoImport13
Object-OrientedInterfaces14
AMoreTypicalObject-OrientedModule:Math::BigInt15
TheComprehensivePerlArchiveNetwork15
InstallingModulesfromCPAN16
SettingthePathattheRightTime17
Exercises19
4.IntroductiontoReferences21
PerformingtheSameTaskonManyArrays21
TakingaReferencetoanArray23
DereferencingtheArrayReference24
GettingOurBracesOff26
ModifyingtheArray26
NestedDataStructures27
SimplifyingNestedElementReferenceswithArrows29
ReferencestoHashes30
Exercises32
5.ReferencesandScoping34
MoreThanOneReferencetoData34
WhatIfThatWastheName?35
ReferenceCountingandNestedDataStructures36
WhenReferenceCountingGoesBad38
CreatinganAnonymousArrayDirectly40
CreatinganAnonymousHash42
Autovivification44
AutovivificationandHashes47
Exercises48
6.ManipulatingComplexDataStructures50
UsingtheDebuggertoViewComplexData50
ViewingComplexDatawithData::Dumper54
YAML56
StoringComplexDatawithStorable57
UsingthemapandgrepOperators59
ApplyingaBitofIndirection59
SelectingandAlteringComplexData60
Exercises62
7.SubroutineReferences63
ReferencingaNamedSubroutine63
AnonymousSubroutines68
Callbacks70
Closures70
ReturningaSubroutinefromaSubroutine72
ClosureVariablesasInputs75
ClosureVariablesasStaticLocalVariables75
Exercise77
8.FilehandleReferences.79
TheOldWay79
TheImprovedWay80
TheEvenBetterWay81
IO::Handle82
DirectoryHandleReferences86
Exercises87
9.PracticalReferenceTricks89
ReviewofSorting89
SortingwithIndices91
SortingEfficiently92
TheSchwartzianMulti-LevelSortwiththeRecursivelyDefinedata95
BuildingRecursivelyDefinedData96
DisplayingRecursivelyDefinedData98
Exercises99
10.BuildingLargerPrograms101
TheCurefortheCommonCode101
InsertingCodewitheval102
Usingdo103
Usingrequire105
requireand@INC106
TheProblemofNamespaceCollisions109
PackagesasNamespaceSeparators110
ScopeofaPackageDirective112
PackagesandLexicals113
Exercises113
11.IntroductiontoObjects115
IfWeCouldTalktotheAnimals...115
IntroducingtheMethodInvocationArrow117
TheExtraParameterofMethodInvocation118
CallingaSecondMethodtoSimplifyThings119
AFewNotesAbout@ISA120
OverridingtheMethods121
StartingtheSearchfromaDifferentPlace123
TheSUPERWayofDoingThings124
WhattoDowith@_124
WhereWeAreSoFar...124
Exercises125
12.ObjectswithData126
AHorseIsaHorse,ofCourseofCourse—orIsIt?126
InvokinganInstanceMethod127
AccessingtheInstanceData128
HowtoBuildaHorse128
InheritingtheConstructor129
MakingaMethodWorkwithEitherClassesorInstances..130
AddingParameterstoaMethod131
MoreInterestingInstances132
AHorseofaDifferentColor133
GettingOurDepositBack133
Don’tLookInsidetheBox135
FasterGettersandSetters136
GettersThatDoubleasSetters136
RestrictingaMethodtoClass-OnlyorInstance-Only137
Exercise137
13.ObjectDestruction139
CleaningUpAfterYourself139
NestedObjectDestruction141
BeatingaDeadHorse144
IndirectObjectNotation145
AdditionalInstanceVariablesinSubclasses147
UsingClassVariables149
WeakeningtheArgument150
Exercise152
14.SomeAdvancedObjectTopics154
UNIVERSALMethods154
TestingOurObjectsforGoodBehavior155
AUTOLOADasaLastResort156
UsingAUTOLOADforAccessors157
CreatingGettersandSettersMoreEasily158
MultipleInheritance160
Exercises161
15.Exporter162
WhatuseIsDoing162
ImportingwithExporter163
@EXPORTand@EXPORT_OK164
%EXPORT_TAGS165
xportinginaPrimarilyOOModule166
CustomImportRoutines168
Exercises169
16.WritingaDistribution171
There’sMoreThanOneWayToDoIt172
Usingh2xs173
EmbeddedDocumentation179
ControllingtheDistributionwithMakefilePL183
AlternateInstallationLocations(PREFIX=...)184
Trivialmaketest185
Trivialmakeinstall186
Trivialmakedist186
UsingtheAlternateLibraryLocation187
Exercise188
17.EssentialTesting189
MoreTestsMeanBetterCode189
ASimpleTestScript190
TheArtofTesting191
TheTestHarness193
WritingTestswithTest::More195
TestingObject-OrientedFeatures197
ATestingTo-DoList199
SkippingTests200
MoreComplexTests(MultipleTestScripts)201
Exercise201
18.AdvancedTesting.203
TestingLargeStrings203
TestingFiles204
TestingSTDOUTorSTDERR205
UsingMockObjects208
TestingPOD209
CoverageTesting210
WritingYourOwnTest::*Modules211
Exercises214
19.ContributingtoCPAN.216
TheComprehensivePerlArchiveNetwork216
GettingPrepared216
PreparingYourDistribution217
UploadingYourDistribution218
AnnouncingtheModule219
TestingonMultiplePlatforms219
ConsiderWritinganArticleorGivingaTalk220
Exercise220
Appendix:AnswerstoExercises221
Index...249
……

相關詞條

熱門詞條

聯絡我們