资源描述:
《Object Oriented Perl.pdf》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、ObjectOrientedPerlDAMIANCONWAYMANNINGGreenwich(74°w.long.)ForelectronicbrowsingandorderingofthisandotherManningbooks,visithttp://www.manning.com.Thepublisheroffersdiscountsonthisbookwhenorderedinquantity.Formoreinformation,pleasecontact:SpecialSalesDepartmentMan
2、ningPublicationsCo.32LafayettePlaceFax:(203)661-9018Greenwich,CT06830email:orders@manning.com©2000byManningPublicationsCo.Allrightsreserved.Nopartofthispublicationmaybereproduced,storedinaretrievalsystem,ortransmitted,inanyformorbymeanselectronic,mechanical,phot
3、ocopying,orotherwise,withoutpriorwrittenpermissionofthepublisher.Manyofthedesignationsusedbymanufacturersandsellerstodistinguishtheirproductsareclaimedastrademarks.Wherethosedesignationsappearinthebook,andManningPublicationswasawareofatrademarkclaim,thedesignati
4、onshavebeenprintedininitialcapsorallcaps.Recognizingtheimportanceofpreservingwhathasbeenwritten,itisManning’spolicytohavethebookswepublishprintedonacid-freepaper,andweexertourbesteffortstothatend.LibraryofCongressCataloging-in-PublicationDataConway,Damian,1964-O
5、bjectorientedPerl/DamianConway.p.cm.includesbibliographicalreferences.ISBN1-884777-79-1(alk.paper)1.Object-orientedprogramming(Computerscience)2.Perl(Computerprogramlanguage)I.Title.QA76.64.C6391999005.13'3--dc2199-27793CIPManningPublicationsCo.Copyeditor:Adrian
6、neHarun32LafayettePlaceTypesetter:TonyRobertsGreenwich,CT06830Coverdesigner:LeslieHaimesPrintedintheUnitedStatesofAmerica12345678910–CM–02010099ForLindacontentsforewordxiprefacexiiacknowledgmentsxviiiauthoronlinexx1Whatyouneedtoknowfirst(anobject-orientationprim
7、er)11.1Theessentialsofobjectorientation21.2Otherobject-orientedconcepts131.3Terminology:afew(toomany)words181.4Wheretofindoutmore181.5Summary202Whatyouneedtoknowsecond(aPerlrefresher)212.1EssentialPerl212.2Non-essential(butveryuseful)Perl512.3TheCPAN652.4Whereto
8、findoutmore682.5Summary723Gettingstarted733.1Threelittlerules733.2AsimplePerlclass803.3Makinglifeeasier893.4Thecreationanddestructionofobjects963.5TheCD::Musicclass,c