1 / 71
文档名称:

The PERL Programming Language.pdf

格式:pdf   页数:71
下载后只包含 1 个 PDF 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

The PERL Programming Language.pdf

上传人:630830412 2013/2/12 文件大小:0 KB

下载得到文件列表

The PERL Programming Language.pdf

文档介绍

文档介绍:The PERL Programming Language
Larry Wall
<>
ABSTRACT
The Practical Extraction and Report Language (perl) is an interpreted language
optimized for scanning arbitrary text files, extracting information from those text files,
and printing reports based on that information. It is also a good language for many sys-
tem management tasks. The language is intended to be practical (easy to use, efficient,
complete) rather than beautiful (tiny, elegant, minimal). bines (in the author’s
opinion, anyway) some of the best features of C, sed, awk, and sh, so people familiar with
those languages should have little difficulty with it. (Language historians will also note
some vestiges of csh, Pascal, and even BASIC-PLUS.) Expression syntax corresponds
quite closely to C expression syntax. Unlike most Unix utilities, perl does not arbitrarily
limit the size of your data— if you’ve got the memory, perl can slurp in your whole file
as a single string. Recursion is of unlimited depth. And the hash tables used by associa-
tive arrays grow as necessary to prevent degraded performance. Perl uses sophisticated
pattern matching techniques to scan large amounts of data very quickly. Although opti-
mized for scanning text, perl can also deal with binary data, and can make dbm files look
like associative arrays (where dbm is available). Setuid perl scripts are safer than C pro-
grams through a dataflow tracing mechanism which prevents many stupid security holes.
If you have a problem that would ordinarily use sed or awk or sh, but it exceeds their
capabilities or must run a little faster, and you don’t want to write the silly thing in C,
then perl may be for you. There are also translators to turn your sed and awk scripts
into perl scripts.
1. Data Types and Objects
Perl has three data types: scalars, arrays of scalars, and associative arrays of scalars. Normal arrays
are indexed by number, and associative arrays by string.
The interpretation of oper

最近更新

2026四川省面向厦门大学选调优秀大学毕业生笔.. 36页

2026年廉政法规知识考试题库(综合题) 14页

2026年中学音乐知识试题及答案(精选题) 15页

2026年时事政治测试题库带答案(预热题) (2).. 13页

2026年武汉民政职业学院单招职业适应性测试模.. 46页

2026年法纪廉政知识测试题(研优卷) 14页

2026年注册税务师考试题库附答案(能力提升).. 46页

2026年消毒技术题库及参考答案【综合卷】 39页

2026年国开电大城市管理学形考题库100道含完整.. 38页

2026年自考专业(会计)考试题库200道【名校卷】.. 84页

2026年郑州西亚斯学院单招职业适应性考试题库.. 44页

2026年青少年学法用法网上知识竞赛试题库附答.. 43页

2026年广西电工证考试题库附答案 40页

2026年执勤消防员考试题库附答案 39页

c语言期末试题一套 13页

2026年消毒技术题库含完整答案【历年真题】 39页

2026年期货公司在线考试题库及答案1套 41页

2026年枣庄学院党史考试题库(有一套) 40页

小学历史与文化知识竞赛题库100道附完整答案【.. 37页

项目部监管建议书 5页

项目调整请示建议书 6页

项目衢州企业咨询服建议书 6页

2026年河南周口电工考试题库附答案 41页

项目方案实施建议书 5页

2026年波密县辅警招聘考试备考题库附答案 31页

面包店运营效率提升建议书 5页

青年人生抉择建议书 6页

零售药品定价范本建议书 5页

隔离生活物资准备建议书 5页

降低成本提升效益建议书 7页