欢迎来到天天文库
浏览记录
ID:20606646
大小:388.00 KB
页数:27页
时间:2018-10-14
《smu_2010_perl_l01》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、PERL(I)WhatisPerlPerlisacleverlittleprogramminglanguagePerl-----PracticalExtractionandReportLanguagePerlhasthepowerandflexibilityofahigh-levelprogramminglanguagesuchasC.Perl'ssyntaxresemblesC.Perlallowstheeasymanipulationoffiles,processtextinformation,
2、andmanyotheritems.WhyPerl?Perldoesnotrequireaspecialcompilertoturntheprogramsyouwriteintoworkingcode.Instead,allyouhavetodoiswritetheprogramandtellPerltorunit.Perlisfree.PerliswidelyandintensivelyusedinbioinformaticstohandleDNAandProteinsequencesaswell
3、asindevelopingofwebbasedinteractivebioinformaticsapplications.PerliseasiertolearnthanCInterpretiveLanguagesVs.CompiledLanguagesLanguagessuchasPerlthatareprocessedbyaninterpreterareknownasinterpretivelanguages.Example:Perl,HTML,Javascipt,PHP,etc.Foracom
4、piledlanguage,theprogramyouwritemustbetranslatedintomachine-readablecodebyaspecialprogramknownasacompiler.Inaddition,librarycodemightneedtobeaddedbyanotherspecialprogramknownasalinker.Example:C/C++,Java,Fortran,Basic,Pascal,etc.AdvantagesandDisadvantag
5、esItisveryeasytorunaprograminaninterpretivelanguagelikePerlPerlismuchmoreefficientthanotherprogramminglanguageinprocessingbiologicalsequencedata.Givenacomputationintensivejob,acompiledprogramisingeneralmuchfasterthanainterpretiveprogram.InstallingPerlD
6、oYouHavePerlInstalled?GotoaDOSorUnixcommand-linepromptandtype:perl-vInstallingPerlonyourPChttp://www.activestate.com/Products/Download/Register.plex?id=ActivePerlDownloadActivePerlforMS-WindowsfromandinstallitinyourPCCreatingaPerlprogramAPerlprogramcon
7、sistsofanordinarytextfile(plaintextfile)containingaseriesofPerlstatements.APerlProgramhasafilenamewithsuffix.plYouneedatexteditortocreatePerlprograms.Recommendation:UltraEditforPCWindows(http://www.ultraedit.com)WindowsNotepadalsoOK.invokingaPerlprogra
8、mUnderDOSorUnixcommandlinepromptgotothedirectorywhereyourPerlprogramisandtypeperlmyprogram.plPERLsyntaxAPerlprogramiscomprisedofstatementsCommentsbeginwithapoundsign(#)Perlstatementsmustendinasemicolon(;)Examplecode:#thisisashortexample
此文档下载收益归作者所有
点击更多查看相关文章~~