由买买提看人间百态

topics

全部话题 - 话题: perl
1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
r*****3
发帖数: 143
1
中文名: Perl高效编程 (第2版) 中文版
原名: Effective Perl Programming Ways to Write Better, More Idiomatic Perl,
2nd Edition
作者: (美) 霍尔
(美) 麦克亚当斯
(美) 福瓦
译者: 盛春 等
图书分类: 软件
资源格式: PDF
版本: 扫描版
出版社: 人民邮电出版社
书号: 9787115250469
发行时间: 2011年
地区: 大陆
语言: 简体中文
简介:
内容简介
本书是Perl 编程领域的“圣经级”著作。它提供了一百多个详实的应用案例,足
以涵盖编程过程中经常遇到的方方面面,由此详细阐释出各种高效且简洁的写法。本书
第1 版曾畅销十年之久,而在第2 版中不仅修正了前版存在的一些问题,更与时俱进地
引入了许多Perl 领域的新主题,使内容更加完善丰富,也更具实用性。
本书为初级Perl 程序员铺就了一条通往高阶之路,而对高级Perl 程序员来说,本
书也是必备的技术参考。
目录:
第1章 Perl基础
第2章 Perl的地道用法
第3章 正则表达式
第4章 子程序
第5章... 阅读全帖
o******1
发帖数: 1046
2
【 以下文字转载自 Linux 讨论区 】
发信人: outlook1 (outlook1), 信区: Linux
标 题: perl cgi中调用C可执行程序为什么在html中不显示?
发信站: BBS 未名空间站 (Sat Apr 12 02:23:45 2014, 美东)
我用perl写一个cgi的程序,其中调用了自己写的C程序(binary executable),需要
其stdout,所以用的是backticks。
如果单独运行perl cgi,结果正常,所有该print出来的全部出现,包括调用的C程序的
output。但是一旦从html里面连接到这个perl cgi,C程序ouput的部分,在网页中不显
示。
我试着把调用C程序的部分改成调用Linux系统程序,比如ls,cat等等,其output在网
页中就正常出现了。
我很困惑,大概知道是因为C程序的output没有被返回到perl process里面。但是在单
独执行perl程序的时候,调用的C就正常的输出到stdout了。又想了一想,可能是perl
和C共享了屏幕显示,所以我分辨不出来。但是在运行perl程序的时候... 阅读全帖
t******a
发帖数: 1200
3
如果开始新项目的话,建议不要用 perl, perl 正在走下坡路, perl 6 已经
搞了13,4 年了还没搞出来,原来拿 perl 做的东西现在拿 python, ruby 都可以
做,而且往往可以做得更好。
如果是维护旧项目的话,觉得书本和实际脱节很正常。perl 是著名的
"write only language", 书写习惯不好的perl 代码,别说你看起来费劲,
即使把作者本人叫过来解释估计也很吃力。想快速入门的话可以从下面
这本 learning perl (the llama book) 上手。
http://www.amazon.com/dp/1449303587/
perl 作者本人参与写作的那本 programming perl (the camel book) 一般
不向新手推荐。
t******a
发帖数: 1200
4
如果开始新项目的话,建议不要用 perl, perl 正在走下坡路, perl 6 已经
搞了13,4 年了还没搞出来,原来拿 perl 做的东西现在拿 python, ruby 都可以
做,而且往往可以做得更好。
如果是维护旧项目的话,觉得书本和实际脱节很正常。perl 是著名的
"write only language", 书写习惯不好的perl 代码,别说你看起来费劲,
即使把作者本人叫过来解释估计也很吃力。想快速入门的话可以从下面
这本 learning perl (the llama book) 上手。
http://www.amazon.com/dp/1449303587/
perl 作者本人参与写作的那本 programming perl (the camel book) 一般
不向新手推荐。
o******1
发帖数: 1046
5
我用perl写一个cgi的程序,其中调用了自己写的C程序(binary executable),需要
其stdout,所以用的是backticks。
如果单独运行perl cgi,结果正常,所有该print出来的全部出现,包括调用的C程序的
output。但是一旦从html里面连接到这个perl cgi,C程序ouput的部分,在网页中不显
示。
我试着把调用C程序的部分改成调用Linux系统程序,比如ls,cat等等,其output在网
页中就正常出现了。
我很困惑,大概知道是因为C程序的output没有被返回到perl process里面。但是在单
独执行perl程序的时候,调用的C就正常的输出到stdout了。又想了一想,可能是perl
和C共享了屏幕显示,所以我分辨不出来。但是在运行perl程序的时候,被调用的C的输
出没有返回到perl process,而是在另一个过程中,所以cgi创建的新网页就不显示了
。但是对于调用的Linux系统程序,为什么能正确的返回呢?
我半路出家,没学过操作系统,对于process,thread这些概念一知半解。大牛们能不
能指点一下,如何设置,... 阅读全帖
e*******o
发帖数: 4654
6
来自主题: Programming版 - perl cookbook不好读。
顶这个,我是靠perl吃饭的,同样不看好这个语言。
要学perl的话。
learning perl, intermediate perl, mastering perl 然后再加 programming perl。
perl cookbook 有点老了。前面四个都有新版可以下载。你看完 intermediate perl
再看 perl cookbook 就很好跟了。
v*****r
发帖数: 2325
7
my group traditionally use perl mostly for data analysis. but i get tired of
perl and hate perl.
plus if i switch job, who needs perl programmers? perl is too casual and
loose a programming language to be serious with software engineering and
computer science..
So i recently start to do most things (used to be done using perl) using
Java. Today did a control group analysis. Found out Java takes more time to
write code than perl, and java code is longer than Perl.
but Java code has much better
r*****3
发帖数: 143
8
中文名: Apache+MySQL+memcached+Perl开发高速开源网站
原名: Developing Web Applications with Apache, MySQL, memcached, and Perl
作者: (美)加尔布雷斯
译者: 李冰
李文革
刘志彬
图书分类: 软件
资源格式: PDF
版本: 扫描版
出版社: 清华大学出版社
书号: 9787302244066
发行时间: 2011年
地区: 大陆
语言: 简体中文
简介:
内容简介
本书会单独地讲解LAMMP栈中的每个组件,因此您可以深入理解每个组件。然后本
书会把所有分开的部分组合在一起,以便能够有效地使用它们来开发Web应用程序。这
不是一本典型的Web应用程序编程书籍,它是由一个在小型机构中必须实现许多不同角
色的作者写成的。在这样的机构中,他必须扮演各种角色:数据库管理员、系统管理员
,甚至是Perl应用程序编码人员。这也不是一本有关Web应用程序设计方面的书籍,本
书所呈现的Web应用程序以尽量简单的设计一笔带过。
目录:
第1章 LAMMP
第2章 MySQL
第3章 MySQL高级进阶
... 阅读全帖
g********s
发帖数: 3652
9
【 以下文字转载自 JobMarket 讨论区 】
发信人: greenlands (sunflower), 信区: JobMarket
标 题: 纽约投资银行招Senior Perl Programmer with Oracle or SQL Server exp
发信站: BBS 未名空间站 (Fri Oct 3 10:23:13 2014, 美东)
Iris's client, a large Investment Bank that provides corporate, government
and institutional clients with a full spectrum of solutions to their
strategic advisory, financing and risk management needs, is looking to hire
a strong Senior Perl Programmer with Oracle or SQL Server exp for a contract
opportunity.
Our clien... 阅读全帖
g********s
发帖数: 3652
10
【 以下文字转载自 JobMarket 讨论区 】
发信人: greenlands (sunflower), 信区: JobMarket
标 题: 纽约投资银行招Senior Perl Programmer with Oracle or SQL Server exp
发信站: BBS 未名空间站 (Fri Oct 3 10:23:13 2014, 美东)
Iris's client, a large Investment Bank that provides corporate, government
and institutional clients with a full spectrum of solutions to their
strategic advisory, financing and risk management needs, is looking to hire
a strong Senior Perl Programmer with Oracle or SQL Server exp for a contract
opportunity.
Our clien... 阅读全帖
g********s
发帖数: 3652
11
【 以下文字转载自 JobMarket 讨论区 】
发信人: greenlands (sunflower), 信区: JobMarket
标 题: 纽约投资银行招Senior Perl Programmer with Oracle or SQL Server exp
发信站: BBS 未名空间站 (Fri Oct 3 10:23:13 2014, 美东)
Iris's client, a large Investment Bank that provides corporate, government
and institutional clients with a full spectrum of solutions to their
strategic advisory, financing and risk management needs, is looking to hire
a strong Senior Perl Programmer with Oracle or SQL Server exp for a contract
opportunity.
Our clien... 阅读全帖
b***y
发帖数: 2799
12
☆─────────────────────────────────────☆
nkw (just+it) 于 (Sat Apr 5 20:21:14 2008) 提到:
不知道雷在这里用的对不对,虽然我很不喜欢这个用法。
要parse很多大text csv文件,很简单,每行50列,其中用一列是没有双引号的text,
但有时也会有逗号,目的就是如果一行的逗号多了一个的话(肯定是text列有逗号),
就用双引号把一列括起来。
有同事用perl写了一个parser。我一直很抗拒perl,混乱,很丑。而且这个问题用sed
就可以做了。
在cygwin用sed做了,用了40多分钟。
觉得太慢。想想awk会不会快点?结果还慢一倍。
perl一直被认为是做这个最好的,那个同事还说过perl就是“designed for this”。
发现同事run过他的perl,去看了他saved的parsed文件时间,显示用了6,7+小时。他
用native Active perl,非cygwin。
再试了试gnu sed for windows 32,半个小时。http://gnuwin32.so
b***y
发帖数: 2799
13
来自主题: Programming版 - [合集] 到底要学习Perl,还是Python?
☆─────────────────────────────────────☆
wmbyhh (wmbyhh) 于 (Tue May 27 02:04:39 2008) 提到:
似乎很多职位要求会这种脚本语言,
打算毕业前最后一学期搞懂这个,简历里吹吹
手上有本Perl书,不知道是学习Perl好还是python好?
☆─────────────────────────────────────☆
wdong (cybra) 于 (Tue May 27 09:12:26 2008) 提到:
用perl做网页好像已经过时了。估计perl6出来后perl就完蛋了。还是python比较好。
也比较容易学。另外perl的速度很快,不过貌似没什么人用解释型语言还在乎速度的。

☆─────────────────────────────────────☆
wmbyhh (wmbyhh) 于 (Tue May 27 14:02:58 2008) 提到:
perl是做网页的?不是脚本语言吗
python是不是也是搞网页的?
那样就算了,我对网页没兴趣?
☆─────────
i***1
发帖数: 95
14
来自主题: Programming版 - perl or python?
Both Perl and Python are cool. I personally like perl better, maybe because
I know her first.
For perl, the excellent first book you need is the "Learning Perl". Another
good thing about perl is there is a CPAN website full of packages.
Python is useful too. I learned Python while being a TA for it...
It seems Python is more popular. Otherwise, why they have a class in school
with python but not perl.
v*****r
发帖数: 2325
15
yes, maybe i got tired of too much perl.
perl code can have good reusability.
but from job switching point of view, i would cut down perl, increase use of
Java/C++
even reinvent some wheels...
leading computer engineering company do not use perl....
the disadvantage of using too much perl is that you will start to lose some
advanced programming skills... because you may use too many "quick glue" all
over place...
still perl has it merits, open a gzip file one line, which is amazing:
open PIPE,"
e*******o
发帖数: 4654
16
ruby 很多地方是借鉴perl,相当与perl的oo版。Larry Wall 本人也觉得ruby 对Perl
的威胁,比 python大。
关于Perl的OO,二爷可以看看 perl 的Moose(Perl 中排名最高的模块)。
t***a
发帖数: 416
17
来自主题: Programming版 - Python, Java, Perl, PHP,Ruby
perl的铁杆当然说perl的文本处理多无敌,我觉得差不多,
perl很适合写那种quick&dirty的一次性脚本,至于regex匹配的performance, perl粉
说perl好一些,我觉得差不了太多,regex那玩意匹配起来要多少时间,谁说的也不算
我的建议是,有现成的脚本就用人家的,管它perl还是python呢,要是自己从头写,
python比较好,这语言简单干净
e*******o
发帖数: 4654
18
来自主题: Programming版 - Perl: How to return 2 dimention array pls ?
http://perldoc.perl.org/perldsc.html
这本书的前几章
http://it-ebooks.info/book/879/
买本perl的书翻翻,比如这边,就几块钱。
http://www.amazon.com/Perl-Cookbook-Second-Tom-Christiansen/dp/
你想搞好Perl 这边一定要买过来。
http://www.amazon.com/Programming-Perl-Edition-Larry-Wall/dp/05
过一遍,基本上不会再有啥问题了。
Perl 那么老的语言,你能遇到的问题,基本上都讨论过了。
r*****o
发帖数: 28
19
来自主题: Unix版 - Perl/Tk ,Tix???
I need to write a program mainly involving with file operations
and text processing, with a GUI wrapper. Some of the functions
seem to be easy to develop in Perl, and I happen to know a little
about Perl, so I chose to use Perl/Tk.
But looks like the widgets in Perl/Tk are quite limited, e.g.
BrowseEntry. Is there any way to use Tix widgets, like tixComboBox,
in Perl? Or I should learn TCL or Python?
Another questions is can I develop the GUI using JAVA, and
call Perl script within Java program?
x*********g
发帖数: 11508
20
来自主题: Unix版 - Perl和Python哪个更好呀?
你到底说得是perl,还是python呢?
事实上,C/C++是做核心的,Java是做应用的,perl是做辅助的,python是做业余爱好的

通常情况下,C/C++赚得最多,Java次之,perl再次之,python不知道。
而工作机会上,Java最多,C/C++次之,perl就少得多了,只有十分之一的样子,python
。。。。

唉,看贴子要在字里行间看出省略掉的形容词。就好比前面有人说Amazon用perl,google


experience
哈哈,看来老兄是Perl的坚定支持者。我只是说各有用处,您老兄就开始攻击python和
p********0
发帖数: 186
21
Hi,
I installed cygwin with perl, perl is located under /usr/bin/perl and I
wrote a test program csv.pl
I was able to run the script perl ./csv.pl , however when I try to use ./csv
.pl directly,
it complain /opt/local/bin/perl: bad interprepter, I donot have a /opt/
directory on my cygwin.
Where can I change the config file that link /opt/local/bin/perl to ./csv.pl
Thanks a bunch.
t***u
发帖数: 230
22
The most authorative book by Larry Wall:
Programming Perl, 3rd. Edition
http://www.unix.org.ua/orelly/perl/prog3/index.htm
The example book:
Perl 5 by Example
http://www.soldierx.com/books/Perl%205%20By%20Example/index.html
The Bioperl website and course:
http://www.bioperl.org/
http://www.pasteur.fr/recherche/unites/sis/formation/bioperl/
The Ensembl Perl modules:
http://www.ensembl.org/Docs/Pdoc/ensembl/
And as always, the best way to learn Perl:
CPAN
http://www.cpan.org/
The links to the book
e*******o
发帖数: 4654
23
Programming Perl 是大骆驼。
还有一本Mastering Perl。
这四本看个差不多,Perl工作很好找。
纯Perl的工作基本不会面试你算法,所以就是聊语言。
个人感觉,可能面试的内容多在 intermediate perl里面。
e*******o
发帖数: 4654
24
来自主题: JobHunting版 - 听说polyvore工作语言是Perl?
作为Perl 程序员,我说一下,Perl的职位,好多是不限制面试语言的。一定要用Perl
的,你现学是没戏的。
还用Perl的公司,多数还是不错的,存在年数> 5 甚至 > 10 ,已经稳定下来了。
另外,有比Perl更好的语言么?哈哈。
g********s
发帖数: 3652
25
Iris's client, a large Investment Bank that provides corporate, government
and institutional clients with a full spectrum of solutions to their
strategic advisory, financing and risk management needs, is looking to hire
a strong Senior Perl Programmer with Oracle or SQL Server exp for a contract
opportunity.
Our client has offices all over the world and has the global reach, advisory
services and distribution power to meet the needs of issuers and investors
worldwide.
Job Title: Senior Perl Prog... 阅读全帖
g***j
发帖数: 40861
26
来自主题: Xibei版 - 请教老乡 perl (转载)
【 以下文字转载自 Military 讨论区 】
发信人: gshjj (各输己键), 信区: Military
标 题: perl 请教 (转载)
发信站: BBS 未名空间站 (Tue Feb 2 15:33:24 2010, 美东)
发信人: gshjj (各输己键), 信区: CS
标 题: perl 请教
发信站: BBS 未名空间站 (Tue Feb 2 15:32:23 2010, 美东)
是一个作业题
说一个CSV有四列,要求用perl 输出第一列和第四列。第四列或者是一个单词,或者是
两个单词。如果是两个单词,要求输出的时候这两个单词用双引号引起来。
下面是我写的perl
open(in_file," while ($line=)
{
($field1,$field2,$field3,$field4)=split',',$line;
if ($field4=~ /.\s./) {print "$field1, x\n";}
else {print "$
s***k
发帖数: 23
27
【 以下文字转载自 Programming 讨论区,原文如下 】
发信人: stock (Microsoft is dead), 信区: Programming
标 题: Perl for programmers(11): package design in perl
发信站: The unknown SPACE (Fri May 26 14:07:38 2000) WWW-POST
In perl, object oriented programming is based on package.
A package is a class. its members are all public.
Each package has an array @ISA to defined base class.
if Perl can not find a method, it will look into the base
class
A method is simply a subroutine.
Constructor and destroyer for a package is BEG
F****3
发帖数: 1504
28
谢谢您告诉我这些!!
我学perl主要是为了在文本处理和抓网页。这个听说是perl的强项。。。不知道对不对
。不过听说python是很好用,非常犹豫。目前市面上text analysis用的语言大部分是
perl。
你推荐的learning perl我已经买了,准备看一看。Python也准备学一学。
请问perl和python是不是等有了具体要做的项目,然后学习,一边学一边用更有效率?
还是在有项目之前每天看一个小时的书?谢谢!
我现在其实就是从网站上下载很多文本,然后处理海量文本文件。谢谢!!!
F****3
发帖数: 1504
29
谢谢您告诉我这些!!
我学perl主要是为了在文本处理和抓网页。这个听说是perl的强项。。。不知道对不对
。不过听说python是很好用,非常犹豫。目前市面上text analysis用的语言大部分是
perl。
你推荐的learning perl我已经买了,准备看一看。Python也准备学一学。
请问perl和python是不是等有了具体要做的项目,然后学习,一边学一边用更有效率?
还是在有项目之前每天看一个小时的书?谢谢!
我现在其实就是从网站上下载很多文本,然后处理海量文本文件。谢谢!!!
c*******n
发帖数: 112
30
我总是得到如下错误信息。束手无策,谢谢了。
root@localhost perl-5.8.8]# make
cc -L/usr/local/lib -o miniperl \
miniperlmain.o opmini.o libperl.a
opmini.o(.text+0x4907): In function `Perl_scalar':
opmini.o(.text+0x8f14): In function `Perl_list':
opmini.o(.text+0xb2a2): In function `Perl_load_module_nocontext':
libperl.a(perl.o)(.text+0x27): In function `perl_alloc':
libperl.a(perl.o)(.text+0x39): In function `perl_alloc':
libperl.a(perl.o)(.text+0x7b): In function `perl_alloc':
libperl.a(perl.o)(.text+0x107): In f
h**p
发帖数: 14
31
来自主题: Programming版 - How to use Text::Unidecode from cpan in Perl?
Hi, I have a simple code I got from CPAN page.
#!/opt/perl-5.8.8/bin/perl -w
use utf8;
use Text::Unidecode;
print unidecode(
"\x{5317}\x{4EB0}\n"
);
When I run it, I got error message:
"Can't locate Text/Unidecode.pm in @INC (@INC contains: /usr/lib/perl5/site_
perl /opt/perl-5.8.8/lib/5.8.8/x86_64-linux /...."
What's wrong here? The CPAN page said this module works with perl 5.0
Thanks for help!!
e*******o
发帖数: 4654
32
来自主题: Programming版 - Perl 大牛是学啥专业的。 (转载)
【 以下文字转载自 biojailbreak 俱乐部 】
发信人: echowuhao (echo), 信区: biojailbreak
标 题: Perl 大牛是学啥专业的。
发信站: BBS 未名空间站 (Sat Feb 22 17:40:22 2014, 美东)
这个帖子相当于一个perl现在牛人的一个报告:
http://www.perl.com/pub/2014/02/perl-today-february-2014.html
我作为好事者总结了一下他们的专业。
** brian d foy
Humboldt State University
BS, Chemistry
1989 – 1994
Humboldt State University
BA, Physics
1989 – 1994
source: http://www.linkedin.com/in/briandfoy
** Randal Schwartz's Education
University of Portland
Non-matriculating, Advanced Calculus and Com... 阅读全帖
F******n
发帖数: 160
33
来自主题: Statistics版 - perl error求助
很像是perl本身有问题。有一种可能是:你的perl解释器(就是可执行的主程序perl)
是低版本(5.8.*), 而你的库(在C:/Perl/lib/下的)是较高版本(5.9.*),所以你那
个高版本里的sub被看作没有定义的“Bareword”。
试试upgrade一下你的整个perl到高版本(5.9.* 以上?)。我不是很清楚现在最新的版
本。
s****e
发帖数: 1180
34
来自主题: Statistics版 - 讲讲perl吧。
找了一段时间工作,发现用perl的还不少,尤其是biotech的公司。那么perl的主要用
途是manipulate data(好像python的主要用途是这个),还是把算法翻译成程序,它
在biotech的公司里主要是干什么的?为什么bioinformatics据说用perl比较多,都用
perl干什么了?perl在bioinformatics上有什么优势吗?懂的人讲讲吧。谢谢。
g**********t
发帖数: 475
35
来自主题: Statistics版 - 讲讲perl吧。
perl最主要的用途还是mainpulate data。算法一般都是用C/C++/java开发的。perl在
bioinformatics中之所以流行,一是perl比较适合处理文本数据,二是由于历史原因,
perl中有大量的bioinformatics modules可以中。最常用的是bioperl,几乎提供了所
有bioinformatics中常用的文件分析和数据处理功能。据本人实践,用bioperl比自己
从头开发速度往往要快一个数量级。除此之外,很多bioinformatics的databases会提
供perl的API,最常用的是Ensembl的API,也可以极大提高工作效率。
b****n
发帖数: 464
36
来自主题: JobHunting版 - 请教perl的tainted和cgi::param() (转载)
【 以下文字转载自 Programming 讨论区 】
发信人: beelin (beelin), 信区: Programming
标 题: 请教perl的tainted和cgi::param()
发信站: BBS 未名空间站 (Wed Jan 9 18:13:43 2013, 美东)
我现在的工作需要维护一个网站。在执行perl的时候,为了安全的原因,用了 perl -T
(tainted)。然后接下来有一步需要用 param(“xxx”) 获得变量值。这个一般都没有
任何问题。
只有一个罕见的情况。当用户在表格里填入单独一个加号 “+” 的时候,到param()
这步会出问题
Insecure dependency in require while running with -T switch at /global/xxx..
..xxxx/CGI.pm line 533.
BEGIN failed--compilation aborted.
这个问题目前只发现在单独一个加号上。换作其他符号,或者正常的词,或者是加号前
面或后面有空白,都不会出问题。
看起来这个问题是perl内... 阅读全帖
s********e
发帖数: 427
37
来自主题: Belief版 - Perl 语言和它的创始人Larry Wall
Perl 为什么叫Perl 呢?他的创始人Larry Wall 也想过很多名字,最终定名,是因为
马太福音里那个关于珍珠的故事。这是主耶稣用来讲天国的价值的。(后来Wall发现已
经有一个语言叫PEARL了,所以就改变了拼写,取名Perl.)看来这个Larry Wall和基督
信仰有些关系。让我们看看他这个人吧!
下面是相关经文和wiki上的资料。
马太福音Matthew
13:45 天国又好像买卖人,寻找好珠子。
13:46 遇见一颗重价的珠子,就去变卖他一切所有的,买了这颗珠子。
Again, the kingdom of heaven is like unto a merchant man, seeking goodly
pearls:
Who, when he had found one pearl of great price, went and sold all that he
had, and bought it.
以下来自wiki
http://en.wikipedia.org/wiki/Larry_Wall
Perl was originally name
s********e
发帖数: 427
38
来自主题: Belief版 - Perl 语言和它的创始人Larry Wall
Larry 的信仰也在Perl的一些术语中显明。比如这个语言的名字Perl, 函数名bless,
文档分类名apocalypse and exegesis。他时常提到信仰,在1997Perl的年会上也有很
直白的信仰分享,在2000年的会议上,有名为“天路历程”的讨论。(《天路历程》的
作者是个补锅匠。关于这本书和作者,又是一个感人,和让人深省的故事。)
Wall's Christian faith has influenced some of the terminology of Perl, such
as the name itself, a biblical reference to the "Pearl of great price" (
Matthew 13:46). [1] Similar references are the function name bless, and the
organization of Perl 6 design documents with categories such as apocalypse
and exegesis. Wall ha
h*****l
发帖数: 184
39
【 以下文字转载自 Software 讨论区,原文如下 】
发信人: hanibal (汉尼拔), 信区: Software
标 题: How many version of Perl/CGI are there?
发信站: The unknown SPACE (Thu Jun 12 12:04:34 2003) WWW-POST
I used ASP a lot, this summer starts to use CGI/PERL on Apache server.
I learn quickly as those technologies are very similar.
But then I met some problem, for example, following code works on my school
server.
#!/usr/local/bin/perl
print "hello world";
But on another server, it has to be:
#!/usr/local/bin/perl
use CGI;
$q=new CGI
b*h
发帖数: 353
40
来自主题: BuildingWeb版 - 求助: 关于Perl and Javascript
问题1:JAVASCRIPT 能否连接数据库(mySQL)?
问题2:能否把 Javascript 嵌入在 Perl code 中(Perl for CGI),我曾作了简单测试
但不成功, 下面是code:
#!/usr/bin/perl -w
use strict;
use CGI;
use CGI::Carp qw(fatalsToBrowser);
my $teststring = 'This is content from Perl';
my @testarray = ('item1', 'item2', 'item3');
print <
print "Content-type: text/javascript";

alert('Soon, I will rebuild my browser!')
END

for (0..$#testarray) {
print <
document.write ('

$testarray[$_]

\\\\n')
END
}
Please help, th
f*********e
发帖数: 8453
41
来自主题: BuildingWeb版 - 问个perl Mechanize问题
正自学,在学自动访问网页部分WWW::Mechanize。
可是写了几句小程序却总出错:
#! /usr/bin/perl -w
use strict;
use constant URL => "http://localhost:8081";
use WWW::Mechanize;
my $browser = WWW::Mechanize->new();
$browser->get(URL);
if($browser->success) {
my $content = $browser->content;
print "Result: '$content'\n";
}
else {
print "failed";
}
我用的perl环境是从activeperl下的for windows xp v5.10.0.1003. 我自己机器
上有apache, 用的端口是8081.
Perl出错信息是:
HTTP::Request version 1.3 required--this is only version 1.28 at C:/Perl/
a***a
发帖数: 149
42
上java吧。 硬件还是算了,如果实验室没有给你条件,自己怎么搞啊?
java应该不比perl难吧,偶用过几年java,perl没有学过。

本人是个杂牌专业的master,具体说就是做networking方向,已经读了一年了。本科是
EE,就感觉c学得还不错,但是出来之前在国内工作过2年,主要也不是搞开发,是做网
络维护这一块的。这个暑假没找到coop,很受打击,自己分析是没有比较好的
programming 能力或者说不够自信,没敢在resume里面吹。所以暑假里开始认真的自学
PERL,现在差不多快把一本入门书看完了(吃透了没有?很迷糊),自己也就是随便敲
敲小程序,我知道这肯定还不够,还要多加练习和看深入一点的书。但是身边也有朋友
说现在真的实用就是C++ 和java,找工作也容易(这是我的主要目标)。所以现在就很
疑惑,到底要不要去学java呢,如果要学需要专门去选java的课吗? 如果继续坚持
perl,大家可不可以给点意见如何提高。
另外,我本人对硬件那一块也还是有点兴趣,就是做FPGA那一块的,这又涉及到了学
VHDL的问题,本科有点基础,我也不介意去走这个方向,就是
i****5
发帖数: 6
43
【 以下文字转载自 JobHunting 讨论区 】
发信人: imm485 (miumiu), 信区: JobHunting
标 题: 请高手帮助几道 perl 编程题
发信站: BBS 未名空间站 (Thu Nov 22 08:36:55 2012, 美东)
1)write a perl script to merge data files with identical format based on
first field. it takes location of two or more input data files as command
line argument, merges and prints merged data to stdout.the result has to be
sorted on first field. You can assume that all data are sorted in all input
files. You are not allowed to use UNIX “sort” command. Each input ti... 阅读全帖
d**n
发帖数: 198
44
来自主题: Linux版 - 请教个perl/DBI/ssh tunnel的问题
公司发神经装了个jump box, 所有access prod server 都要通过这个jump box
现在是这样的,偶要送一台dev machine 读prod server 的DB2, 用perl
在perl 里:
my $dbh = DBI->connect(DBI:DB2:db_name@localhost:66666, username, password);
perl 在机器A 上运行, jump box 是J, 装db2的机器是d
偶在机器A上: ssh -L 66666:J:66666 username_A@J
验证密码后,在J 上运行
ssh -L 66666:d:66666 username_B@d
密码通过
但是,执行那个perl ,显示无法连接, argument 错误
大侠帮忙看下吧, 偶对这个tunnell 实在很弧度。
d**n
发帖数: 198
45
来自主题: Linux版 - 请教个perl/DBI/ssh tunnel的问题
re

公司发神经装了个jump box, 所有access prod server 都要通过这个jump box
现在是这样的,偶要送一台dev machine 读prod server 的DB2, 用perl
在perl 里:
my $dbh = DBI->connect(DBI:DB2:db_name@localhost:66666, username, password);
perl 在机器A 上运行, jump box 是J, 装db2的机器是d
偶在机器A上: ssh -L 66666:J:66666 username_A@J
验证密码后,在J 上运行
ssh -L 66666:d:66666 username_B@d
密码通过
但是,执行那个perl ,显示无法连接, argument 错误
大侠帮忙看下吧, 偶对这个tunnell 实在很弧度。
w***g
发帖数: 5958
46
1. 先确保是否真的写到了stdout,单独运行perl cgi的时候用 > xxx看你要的输出有
没有重定向到xxx里面。
2. 换一个目录运行perl cgi看是不是还正确。apache调用cgi的时候目录可能和你用的
不一样。
3. 用sudo执行perl cgi,看是不是还是正确。apache调用你的程序会用apache/www/
www-data类似的用户名调用。你可以su到该用户运行一下看是否正确。
4. 看apache的错误日志, /var/log/apache2/error.log。

perl
b***y
发帖数: 2799
47
☆─────────────────────────────────────☆
nfnmd (大文) 于 (Mon Jan 7 00:37:14 2008) 提到:
c++, java,python都比perl好读多了
☆─────────────────────────────────────☆
xingxing (星星) 于 (Mon Jan 7 00:49:46 2008) 提到:
因为写code的人不用维护。

☆─────────────────────────────────────☆
thrust (WoW 无限期冬眠中) 于 (Mon Jan 7 00:54:51 2008) 提到:
很多时候,perl写的程序也就是写完了用一阵,用完了就扔了,自然是怎么恶心怎么来
另外你干嘛拿c++,java跟perl比。你干嘛不用shell跟perl比?
☆─────────────────────────────────────☆
nfnmd (大文) 于 (Mon Jan 7 00:59:18 2008) 提到:
shell功能太有
j*a
发帖数: 14423
48
来自主题: Programming版 - Perl多线程的问题
看文档啊
http://perldoc.perl.org/threads.html
DESCRIPTION
Perl 5.6 introduced something called interpreter threads. Interpreter
threads are different from 5005threads (the thread model of Perl 5.005) by
creating a new Perl interpreter per thread, and not sharing any data or
state between threads by default.

locker
s***r
发帖数: 32
49
来自主题: Programming版 - How to print \t in perl one-liner?
Hi,
I wanted to do sth like:
perl -F"\t" -lane "print $F[0], "TAB", log($F[1])" infile.txt
There is a problem with the TAB character: I can not find a way to represent
it in a way that perl recognize.
So I have to hack sth like:
perl -F"\t" -lane "print $F[0], _______, log($F[1]+1)" in.txt|perl -pi -e "s
/_______/\t/g"
Any better ways of doing it? Thanks!
z****e
发帖数: 2024
50
来自主题: Programming版 - perl or python?
我以前学过perl,拗口难读,每年都有读perl代码的大赛,后来不用,居然全忘了!可
见perl这个玩意害人。
我觉得,说句实话:
perl比C++难学多了!
1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)