生物资讯程式语言应.ppt
《生物资讯程式语言应.ppt》由会员分享,可在线阅读,更多相关《生物资讯程式语言应.ppt(26页珍藏版)》请在三一办公上搜索。
1、生物資訊程式語言應用 Part 3,Perl Language,Outline,Introduction.Installation.Background knowledge in Perl.Data type.Control structure.Regular expression.Overall practice.,Introduction,Perl is free software.Larry Wall(He is a linguist).The history of Perl language.1987-Perl 1.0.1994-Perl 5(contain OOP).OOP(obje
2、ct oriented programming)物件導向程式語言Perl 5.8.0 support unicode.2003 Perl 6.Now.Characteristic.The script language base on C language(具跨平台的特性).,Installation,Perl is the default language in any distribution of Linux.Perl can be executed and worked by the ActivePerl package in windows platform.How to edit
3、Perl program?Notepad in windows,UltraEdit and any text editor.,Installation cont.,Practice.Download ActivePerl software file.Install ActivePerl.,Background knowledge,Data type in Perl.Control structure in Perl.Regular expression in Perl.,Data type in Perl,Like EnglishScalar(純量變數)比喻單件事物.數字常數$x=5;字串常數
4、$y=“Hello”;The special expression of Perl.Print“Hello”.”World”;(Hello World).Print“Hello”*2;(HelloHello).字串與數字間的轉換$x=123;$y=“456”;Print$x+$y;(數字)Print$x.$y;(字串),Data type in Perl cont.,Practice.Using scalar.Special expression.字串與數字間的轉換.,Data type in Perl cont.,Array(陣列).The definition of Array in Pe
5、rl.student=(9154610,9154611,”9154612”);my student;$student0=9154610“;$student1=“9154611“;$student2=“9154611”;Array 單數的取用.print$student0,n;print$student1n;print$student2.n;Array 複數的取用.print student,“n”;(全部一起print出來)以單數取用方式print出複數資料(in control structure chapter).,Data type in Perl cont.,Practice.Usin
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 生物 资讯 程式 语言
链接地址:https://www.31ppt.com/p-6317138.html