PDA

查看完整版本 : Beginner"s books on programming language PERL?


tiger
2005-09-15, 10:08 PM
pls recommend a beginner's book on programming. i've made up my mind to make a start.

[本贴已被 xujiajin 于 2005年09月16日 22时54分39秒 编辑过]

tiger
2005-09-15, 10:27 PM
better late than never

xiaoz
2005-09-16, 12:17 AM
First decide on a programming language. For corpus processing purpose, I recommend PERL, which you already have installed - Practical Extraction and Retrieval Language, sounds cute for a corpus linguist?

Then search web for some free tutorial first. I started with (SAM) Teaching Yourself Perl in 21 Days. Read this book twice and do all exercises, you will save years of manual labour.

xusun575
2005-09-16, 07:07 AM
以下是引用 xiaoz 在 2005-9-16 0:17:44 的发言:
First decide on a programming language. For corpus processing purpose, I recommend PERL, which you already have installed - Practical Extraction and Retrieval Language, sounds cute for a corpus linguist?

Then search web for some free tutorial first. I started with (SAM) Teaching Yourself Perl in 21 Days. Read this book twice and do all exercises, you will save years of manual labour.

Thank u for this very valuable advice!

Haiyang
2005-09-16, 11:11 AM
If you decide to learn C, the The C Programming Language is the bible.

tiger
2005-09-16, 11:52 AM
thanks for all the information

tiger
2005-09-16, 12:58 PM
another naive question:
what is the difference between source code distribution and binary distribution at http://www.perl.com/download.csp?
which should a beginner download?


[本贴已被 作者 于 2005年09月16日 18时40分34秒 编辑过]

xiaoz
2005-09-16, 04:59 PM
You don't need the source codes of perl. Download the win32 binary.

tiger
2005-09-16, 06:42 PM
thanx a lot.

tiger
2005-09-16, 09:15 PM
以下是引用 xiaoz 在 2005-9-16 0:17:44 的发言:
First decide on a programming language. For corpus processing purpose, I recommend PERL, which you already have installed - Practical Extraction and Retrieval Language, sounds cute for a corpus linguist?

Then search web for some free tutorial first. I started with (SAM) Teaching Yourself Perl in 21 Days. Read this book twice and do all exercises, you will save years of manual labour.



can perl be employed to process texts in Chinese?

xujiajin
2005-09-16, 10:29 PM
http://www.ebook007.com/download/pc/perlfaqs.zip
《Perl常问问题集》电子书chm格式

xujiajin
2005-09-16, 10:32 PM
《Perl_cgi六天入门》
http://www.ebook007.com/download/pc/perl_cgi.zip

《Qkperl》
http://www.ebook007.com/download/pc/qkperl.zip

tiger
2005-09-16, 10:35 PM
millions of thanks

xujiajin
2005-09-16, 10:46 PM
http://www.yyedu.org:81/xx/dnp_perl/perl.htm
Perl循序渐进

 随着全球资讯网(World Wide Web,WWW)的兴起,网络从平淡的文字世界进入了影音声光的新纪元。同时也引进了新的阅读方法,一种有别传统循序式的阅读方法━Hyper Text。让人们能够直接从有兴趣的主题切入,并且在其间相互跳跃、链结,以取得所想要的资料。也因此带动了网络人口的激增以及无限的商机,所以在商业应用上这是一个值得开发的空间。
  CGI是Common Gateway Interface的简称。其主要的功能是在WWW环境下,藉由从客户端传递一些讯息给WWW Server,再由WWW Server去启动所指定的程序码来完成特定的工作。所以更明确的说,CGI仅是在WWW Server上可执行的程序码,而她的工作就是控制讯息要求而且产生并传回所需的文件。
  CGI可以用任何一种语言编写,只要这种语言具有标准输入、输出和环境变量。对初学者来说,最好选用易于归档和能有效表示大量数据结构的语言。目前比较常见的语言有Perl, C/C++,Java,Visal Basic,Visal Foxpro等, ASP,bat(批处理文件)也可算其中一种,所以它的范围很广。而Perl (Practical Extraction and Reporting Language)正是最适合的语言之一。
  您在INTERNET上常常看到BBS、CHAT、贺卡、Email Form、Banner Exchange等CGI程序都极可能是Perl编制的。Perl难学吗?No! 如果你有其他语言的经验,很容易上手,如果有C语言的基础,那就更简单了,某些语句和C语言几乎一模一样。OK,开始吧,欢迎进入网上学园精心准备的Perl循序渐进教程。

  别期望在一刻钟内就能领略Perl的所有神奇之处, 这种情况很像吃香蕉, 用不着吃完整只香蕉后才知其味,每咬一口都是享受,并促使你再咬下一口,再下一口。
                      ----Larry Wall

第一课:Perl概述。
第二课:变量(1)――纯变量。
第三课:变量(2)――数组。
第四课:变量(3)――关联数组。
第五课:Perl的运算符号字符。
第六课:Perl的基本输入输出。
第七课:控制结构(1)-判断控制。
第八课:控制结构(2)-循环控制。
第九课:常规表达式(1)。
第十课:常规表达式(2)。
第十一课:函数(1)--用户自定义函数(子程序)。
第十二课:函数(2)--常用系统函数。
第十三课:文件及目录操作。
第十四课:进程管理。
附一:在自己的电脑上调试CGI程序。
附二:CGI的环境变量。

xiaoz
2005-09-16, 11:08 PM
Perl is also supported by Unicode.

Haiyang
2005-09-17, 03:40 PM
Perl的快速参考手册
http://www.corpus4u.org/upload/forum/2005091715384585.pdf

Perl语言与自然语言处理
http://www.corpus4u.org/upload/forum/2005091715393379.ppt

Getting Started with Perl
http://www.corpus4u.org/upload/forum/2005091715400826.pdf

tiger
2005-09-17, 04:20 PM
thank you.

都市放牛
2005-09-17, 10:58 PM
我有几本学习perl的经典书(小骆驼系列)
1.OReilly.Learning.Perl.4th.Edition.Jul.2005.chm
http://www.newsmth.net/bbscon.php?bid=226&id=24575&ap=2382
2.OReilly.Advanced.Perl.Programming.2nd.Edition.Jun.2005.chm
http://www.newsmth.net/bbscon.php?bid=226&id=24574&ap=2614
3.Higher.Order.Perl.Transforming.Programs.with.Programs.zip
http://www.newsmth.net/bbscon.php?bid=226&id=24249&ap=360
4.OReilly.Perl.Best.Practices.Jul.2005.chm
http://www.newsmth.net/bbscon.php?bid=226&id=24979&ap=2897

xujiajin
2005-10-01, 01:50 PM
Network Programming with Perl

dzhigner
2005-11-08, 11:42 PM
Perl is not a good start point of learning scripting or programming. Any programming language with a strict grammar yet not very complicated is better. I think Visual Basic is a good choice. That VB is commercial software might be the only reason it is not widely used in NLP or anything for that matter. Python is another option, perhaps a best one. It is free and easy to learn and it has mingled the advantages of quite a few other programming languages.

Haiyang
2005-11-09, 12:40 AM
Kind of shifting to C# now. Visual Studio has a better IDE, and the sytax's easier to read.

cncorpus
2005-11-10, 12:29 AM
Perl is a programming language. In theory, any programming language can process Chinese. It'll be a matter of programming techniques and algorithms if you want to use Perl to process Chinese.

cncorpus
2005-11-10, 12:40 AM
个人经验:Perl要比VisualBasic容易学/使用。PHP(http://www.php.net)又比前两者更容易使用。

In general terms, Perl和PHP都是scripting language, 文本界面。如果要做corpus之类的研究,两个都要比VisualBasic顺手点。

当然,只要会使用一个programming language, 其它都很容易学,因为基本概念都是一样的。

Haiyang
2008-07-12, 05:37 PM
尝试了一圈,还是觉得 dzhigner 说的有理。Python 比较容易学的,语法简洁。