Web technology_chapter5.ppt

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Web technology_chapter5

Chapter 5 The Basic of Perl Introduction Perl is widely used for Common Gateway Interface (CGI) programming Perl is useful in other contexts, so is a worthwhile additions to a programmers toolbox 5.1 Origins and Uses of Perl Originally intended to combine and extend the processing functions of several Unix utilities including awk, sed, grep and sh Developed by Larray Wall Perl’s pattern matching ideas have been used in other languages and libraries Perl’s pattern matching extends ideas used in some of the Unix utilities Perl is compiled to intermediate code, a virtual machine language, which is then interpreted Origins and Uses of Perl Perl是Practical Extraction and Report Language的缩写,它是由Larry Wall设计的,并由他不断更新和维护,用于在UNIX环境下编程。 Perl 最初的设计者为拉里·沃尔(Larry Wall),他于1987年12月18日发表。Perl借取了C、sed、awk、shell scripting以及很多其他程序语言的特性。`其中最重要的特性是它内部集成了正则表达式的功能,以及巨大的第三方代码库CPAN。 ?? Origins and Uses of Perl Origins and Uses of Perl Perl 是一种能完成任务的语言。从一开始,Perl 就设计成可以把简单工作简单化,同时又不失去处理困难问题能力的语言。 它可以很容易操作数字,文本,文件和目录,计算机和网络,特别是程序的语言。 Perl很容易运行外部的程序并且扫描这些程序的输出获取感兴趣的东西。而且它还应该很容易能把这些你感兴趣的东西交给其它程序做特殊的处理。 Perl很容易在任何现代的操作系统上可以移植地编译和运行。 5.2 Scalars and Their Operations Perl has three categories of variables/values: scalars, arrays, hashes Variables for each category are distinguished by the first symbol in the variable name $ for scalar @ for array % for hash Scalars come in three kinds: numbers, character strings and references Numbers are stored internally as double-precision floating point Note that strings are considered scalars in Perl 5.2 Numeric Literals Integer literals are a string of digits Integer literals can be written in hexademical, base 16, beginning the number with 0x or 0X Floating-point literals have either decimal point or exponent or both 5.2 Numeric Literals Integer literals are a string of digits Integer literals can be written in hexademical, base 16, beginning the number with 0x or 0X Floating-point literals have either decimal point

文档评论(0)

80019pp + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档