Perl Tutorial-Basics
Venkat Thirumala
Why Perl
Perl is built around regular expressions
REs are good for string processing
Therefore Perl is a good scripting language
Perl is especially popular for CGI scripts
Perl makes full use of the power of UNIX
Short Perl programs can be very short
"Perl is designed to make the easy jobs easy, without making the difficult jobs impossible." -- Larry Wall, Programming Perl
Why not Perl
Perl is very UNIX-oriented
Perl is available on other platforms...
...but isn't always fully implemented there
However, Perl is often the best way to get some UNIX capabilities on less capable platforms
Perl does not scale well to large programs
Weak subroutines, heavy use of global variables
Perl's syntax is not particularly appealing
What is a scripting language
Operating systems can do many things
copy, move, create, delete, compare files
execute programs, including compilers
schedule activities, monitor processes, etc.
A command-line interface gives you access to these functions, but only one at a time
A scripting language is a "wrapper" language that integrates OS functions
Major scripting languages
UNIX has sh, Perl
Macintosh has AppleScript, Frontier
Windows has no major scripting languages
probably due to the weaknesses of DOS
Generic scripting languages include:
Perl (most popular)
Tcl (easiest for beginners)
Python (new, Java-like, best for large programs)
Perl Example 1
#!/usr/local/bin/perl
#
# Program to do the obvious
#
print 'Hello world.'; # Print a message
Comments on "Hello, World"
- jellypopmv > #!/usr/local/bin/perl
-
#!/usr/local/bin/perl
下载该文档 文档格式:PPT 更新时间:2010-12-01 下载次数:0 点击次数:2文档基本属性 文档语言: 文档格式: ppt 文档作者: Villanova 关键词: 主题: 备注: 点击这里显示更多文档属性 经理: 单位: Test 分类: 创建时间: 上次保存者: vijaya 修订次数: 36 编辑时间: 文档创建者: 修订: 加密标识: 幻灯片: 54 段落数: 431 字节数: 199903 备注: 47 演示格式: On-screen Show 上次保存时间:
- 下载地址 (推荐使用迅雷下载地址,速度快,支持断点续传)
- PPT格式下载
- 更多文档...
-
上一篇:Charlottesville
下一篇:Director-General
点击查看更多关于jellypopmv的相关文档
- 您可能感兴趣的
- jellypop bubblepopmv bubblepopmv下载 hippopmv jelly jellyfish jellydefense jellybird果冻酒 jellybird jellycar
- 大家在找
-
- · 西门子加工中心的操作
- · 合工大2012mba
- · 宣威市人民政府门户网
- · 网页设计电子教案
- · 30天周期的排卵温度表
- · 异形文玩核桃图片大全
- · 初中数学案例反思
- · 上肢静脉曲张
- · 配料小车控制程序设计
- · 材料力学刘鸿文第四版
- · 陈情表原文
- · 露华浓怎么样
- · 烹饪工艺与营养论文
- · 风力发电系统原理
- · 蒸馏测原油含水率步骤
- · 手机充电器电路图讲解
- · 2012年服装零售业形势
- · sf666
- · c1驾照科目一模拟考试
- · 哪有卖铰链四杆机构的
- · 蛋白质电泳实验技术
- · 高二语文期中考试题
- · 口腔颌面外科课件
- · 中国商务出版社
- · 任达华演过的三
- · 3d侠免费整体模型下载
- · 巷道工作面掘进自检表
- · 治疗膀胱结石专科医院
- · 2010河南南阳经济建设
- · 松阳不锈钢产业十二五规划
- 赞助商链接