- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
perl(Perl)
perl(Perl)
Perl is a programming language originally developed for text manipulation. Now it can be applied to a wide range of tasks, including system administration, web development, network programming, GUI development, and more general use.
The language is pragmatic (easy, efficient, and complete), preferring to lose beauty (compact, elegant, mini). It is easy to use and supports process oriented and object oriented programming, built with powerful text processing support, and has the worlds most impressive third party module camps.
Run the Perl program
Run the Perl program on the Unix command line:
Perl progname.pl
Another way is to put this in the first line of your script:
#! /usr/bin/env Perl
Then run with /path/to/script.pl. Of course, you have to let it execute first, you have to Chmod 755 script.pl (Unix).
The first line here assumes that you have a env program. You can direct the path of your Perl interpreter directly on the first line, such as # /usr/bin/perl)!
Safety guarantee
By default, Perl is very random. To make it more robust, it is recommended that each program start with the following lines:
1. # /usr/bin/perl!
2. use strict;
3. use warnings;
The additional two lines capture a variety of common problems in your code from perl. They check different things, so you need two to add. A potential problem is captured by use strict; once it catches the problem, it immediately stops your program. Of course, when using use warnings, only warnings (like the command lines -w option) do not stop the program.
Basic syntax overview
A Perl script or program that contains one or more statements. These statements simply need to be written directly in the script without requiring something like main () to be used as a program entry.
The Perl statements are ended separately:
Print Hello, world.;
With an asterisk (#) began the statement notes:
# This is a comment (this is a comment)
Blank characters will be ignored by Perl:
1. print
2., Hello, world.
3;
...... Excep
您可能关注的文档
- joo1(joo1).doc
- java面试纠错题目大全(Java interview error correction topics).doc
- jorinde and joringel(jorinde和joringel).doc
- js document对象(i document对象).doc
- jdbc 访问各种数据库 url 语法(总结篇)(JDBC access various database URL syntax (summary)).doc
- java面象对象编程(Java object like programming).doc
- jsp input限制输入(JSP input restrict input).doc
- js语句及语法(JS statements and syntax).doc
- juniper基本配置入门(Introduction to basic configuration of juniper).doc
- js语法(JS syntax).doc
- ph值(The value of pH).doc
- ph指示剂(PH indicator).doc
- pic单片机浮点数(PIC MCU floating point number).doc
- ping的用法(The use of Ping).doc
- pisa阅读素养(pisa阅读素养).doc
- plsql developer使用技巧(PLSQL developer usage skills).doc
- plsql排重复行总结一(Row PLSQL repeat line 1).doc
- photoshopstudydoc(photoshopstudydoc).doc
- ports简介(港口简介).doc
- plc基本知识(PLC basic knowledge).doc
最近下载
- 2025年外研版四年级上册英语期中综合检测试卷及答案.pptx VIP
- 学校体育学-体育教学规律.pptx VIP
- 湖南省长沙市师大附中梅溪湖中学2023-2024学年七年级上学期第一次月考英语试卷.docx VIP
- 我国历史大事年表(整理).doc VIP
- 特种设备重大事故隐患判定准则标准解读释义(GB 45067-2024).pptx VIP
- 2025年外研版四年级上册英语Unit 1综合检测试卷及答案A卷.pptx VIP
- 老外常用的286个句型.pdf VIP
- 租房合同“租房合同”.docx VIP
- 2025秋统编版小学道德与法治二年级上册教学设计(附目录).docx VIP
- 图解2025年新修订《传染病防治法》专题课件.ppt
文档评论(0)