s***f 发帖数: 226 | 1 PHP,Python和Perl,这3P是现在比较流行的script languages。Perl更好地应用在
text processing上。 |
|
e******k 发帖数: 97 | 2 自己在Windows+.NET+C#上做了好几年,已经习惯了。
最近看了看工作招聘告示:Google/Facebook都要Linux+C/C++/Java/Perl/Python的人
,这一来我连试一试的机会都没有了?
C/C++/Java倒是用过,不过用C#习惯了,退回去挺难过。
Perl/Python就几乎没碰过。
Windows用惯了,用Linux费劲,连个显示器driver都整半天(还没整出来。。。)
哪位给指点一下,像我这样的咋办?
多谢! |
|
k****n 发帖数: 8684 | 3 #!/usr/local/bin/perl
open FH, shift @ARGV;
map{ chomp; $isword{uc join "", sort /./g} .= "$_+" } ;
map{ chop $isword{$_} } keys %isword;
请问大牛们,
1)这两个map执行什么操作?
2)有什么经典的perl书籍可看吗?
多谢了。 |
|
b***m 发帖数: 5987 | 4 呵呵。不过这几个Perl题总体不难。Perl是我最喜欢的语言之一。 |
|
y****i 发帖数: 312 | 5 learning Perl is best for learning Perl :) |
|
s*******h 发帖数: 3219 | 6 perl这几年突然就没人用了,转年就死了。python和perl也没多大差别。会不会? |
|
H******d 发帖数: 98 | 7 在看《Learning Perl》(小骆驼),几百页看得头都大了,就只想快速入门并且应付
面试
求推荐Perl script的快速入门资料,谢谢! |
|
H******d 发帖数: 98 | 8 那我是看完Learning Perl之后还要看intermediate perl么?只是为了准备面试的话? |
|
|
r**********g 发帖数: 22734 | 10 Perl这种write-only的语言,跳坑要慎重。你不知道将面对怎样的mess。你写得好,不
代表别人也写得好。
Perl |
|
A*****i 发帖数: 3587 | 11 我大学同学现在在北京爱立信写perl,我问他为啥不去互联网公司,他说除了写perl啥
都不会……
人家问的那些什么框架什么工具什么技术听都没听过 |
|
q****x 发帖数: 7404 | 12 【 以下文字转载自 JobHunting 讨论区 】
发信人: quantx (X矿工), 信区: JobHunting
标 题: Perl新手求网络教程
发信站: BBS 未名空间站 (Sat Jul 16 17:40:25 2011, 美东)
哪位大拿给推荐一个?Perl 5以上。希望通俗易懂,能快速上手。有练习最佳。 |
|
j********r 发帖数: 96 | 13 Greetings Mitbbs Community,
Here's another great opportunity that we have currently for a Perl Developer.
This is a Full Time position. Salary; 100k
If interested contact: john@h10capital
- 5 years experience in software design and development, preferably with
Java, and Ruby on Rails or Perl.
- 5 years of experience implementing database-driven, web-based applications
with Oracle,MySQL, Postgres, MS SQL, or comparable relational database.
- Advanced knowledge of Unix or Linux.
- Ability to be f |
|
G***G 发帖数: 16778 | 14 for web deveopment, which soft do you prefer, cgi(perl) or php?
any recommendation for ide for perl?
thank you very much. |
|
|
s********e 发帖数: 427 | 16 对Larry而言,语言,程序语言,信仰,是相关的。他是很认真的福音派基督徒,他们
一家去New Life Church.
Perl isn't Wall's only passion. Wall is also a serious evangelical Christian
, a member (and webmaster) of the New Life Church's Cupertino Church of the
Nazarene. He's one of the few overtly religious figures in the pantheon of
programmers, For him, language, code, and faith are -- in a Perl-like mix --
glued together. |
|
N**********d 发帖数: 9292 | 17 我不确定。。。。
我稍微懂点reg exp,但是不懂perl没用过
我觉得\s匹配了第四列,第二个单词后面的换行了吧?
必须用perl么? |
|
s***k 发帖数: 23 | 18 【 以下文字转载自 Programming 讨论区,原文如下 】
发信人: stock (Microsoft is dead), 信区: Programming
标 题: Perl for programmers(10): A template for CGI file
发信站: The unknown SPACE (Fri May 26 11:12:07 2000) WWW-POST
#!/usr/bin/perl -w
############################################################
################
# Copyright (c) 1999-2000 Ywu.com Inc.
# This program contains proprietary and confidential
information. All
# rights reserved except as may be permitted by prior
written consent.
#
# R E V I S |
|
s***k 发帖数: 23 | 19 【 以下文字转载自 Programming 讨论区,原文如下 】
发信人: stock (Microsoft is dead), 信区: Programming
标 题: Perl for programmers(9): subroutines
发信站: The unknown SPACE (Thu May 25 15:41:31 2000) WWW-POST
In perl, Subroutine and function are in the same mechanisms.
Definitions:
sub abc;
sub abc {}
$ABC = sub{};
calls:
abc($a,$b);
abc $a,$b;
&abc; #parameters passing through @_to subroutines
&$ABC($a,$b);
or &$ABC($a,$b);
subroutine passes data into and out of the block through a
@_ list, its parameters are $_[0], $_ |
|
a****g 发帖数: 6 | 20 我想在perl cgi 中运行一个C程序并得到其结果(name: exe_prog ,输出结果是一个 int array).
当我单独运行exe_prog时,结果如下:
》exe_prog
12 13 14 16 17 19 21
my CGI script is :
...
unless (open PIPE, "exe_prog |" ) {
print "can't open file";
}
$result = ;
close (PIPE);
...
但打开时,总显示 "can't open file".
但当我单独写一个同样的perl 程序 perl_prog.pl :
unless (open PIPE, "exe_prog |" ) {
print "can't open file";
}
$result = ;
close (PIPE);
并运行时,结果正常:
》perl_prog.pl
12 13 14 16 17 19 21
(all files in the same dire |
|
y*********r 发帖数: 3 | 21 【 以下文字转载自 Database 讨论区,原文如下 】
发信人: yourmanager (lucent), 信区: Database
标 题: Perl CGI and Excel files
发信站: The unknown SPACE (Thu May 16 15:27:08 2002) WWW-POST
I want to use Perl CGI to generate some excel files for people to download
from web browsers. Does anyone have idea how to do it? Thanks very much. |
|
h***u 发帖数: 214 | 22 Pls help me:
how to call a application program on perl + RH8.0
the following:
****************************************************
system("R BATCH /temp/test.r /temp/testout.dat");
****************************************************
can run on php, but when I try perl. always give me "500" error.
any configuration problem?
Thank you !!!! |
|
p******f 发帖数: 162 | 23
yes, you can use perl to generate whatever document you want, including
javascript, just remember, the output of perl program is what will be
sent to the browser, so make sure it is valid document. |
|
P*********r 发帖数: 487 | 24 请问perl里面两个string是怎么连起来的呢?
比如说我有一个变量$field还有一个变量$value,现在我想把它们连起来生成一个stri
ng为
$field=$value
我对perl是生手,现在系里的网站要得又急,恳请帮忙。多谢多谢! |
|
t*s 发帖数: 1504 | 25 Basically, I need to build a webpage... the webpage helps participants
computing some sort of values ... the computation takes 10 seconds in matlab
....
I need to handle some reasonable amount of data (a hundred thousand integers
)...and it has to be a webpage, so now i decide to use php. I'm wondering
is it a good idea to separately code the compuational part in perl? or even
in c (if c/perl can access mysql easily) |
|
c******l 发帖数: 36 | 26 Modern Perl with any Perl templating systems is far enough
for all your needs.
matlab
integers
even |
|
s********1 发帖数: 581 | 27 做vision或者graphics的公司要用perl,php,python吗?
这些公司的软件一般是用c++写的。那么软件的用户界面哪?尤其是server端的界面哪
?要用perl,php,python吗?哪种最有用?
谢谢! |
|
s*******r 发帖数: 197 | 28 本人是个杂牌专业的master,具体说就是做networking方向,已经读了一年了。本科是
EE,就感觉c学得还不错,但是出来之前在国内工作过2年,主要也不是搞开发,是做网
络维护这一块的。这个暑假没找到coop,很受打击,自己分析是没有比较好的
programming 能力或者说不够自信,没敢在resume里面吹。所以暑假里开始认真的自学
PERL,现在差不多快把一本入门书看完了(吃透了没有?很迷糊),自己也就是随便敲
敲小程序,我知道这肯定还不够,还要多加练习和看深入一点的书。但是身边也有朋友
说现在真的实用就是C++ 和java,找工作也容易(这是我的主要目标)。所以现在就很
疑惑,到底要不要去学java呢,如果要学需要专门去选java的课吗? 如果继续坚持
perl,大家可不可以给点意见如何提高。
另外,我本人对硬件那一块也还是有点兴趣,就是做FPGA那一块的,这又涉及到了学
VHDL的问题,本科有点基础,我也不介意去走这个方向,就是不知道现在这个方向的就
业形势如何?
第一次在这里发帖,说的有点乱,希望得到大虾的解答 |
|
d*****u 发帖数: 17243 | 29 我的工作有时候需要编点小程序,主要是处理一些文本等等。
现在打算在perl和python里面深入学一个,不知道各自主要的优劣在哪里?
我稍微会一点perl,感觉形式很灵活,也比较好读。但似乎越来越多的人推荐python。
我有一些VC++基础 |
|
a*******r 发帖数: 260 | 30 perl is stronger in text processing.
python code is cleaner, and has more scientific packages than perl. |
|
n*e 发帖数: 50 | 31 多谢。
很多年不用PERL,突然看起PERL的script很是头疼啊。 |
|
j*******e 发帖数: 48 | 32 I want to calculate the edit distance between two words, I penalize
insertion, deletions and substitution by 1 unit. My question is, for some
substitutions, for example, "a", its closest neighbors "q, s , z", it is
substitution cost will be 0.5. I have a txt file which contain all the pairs
whose substitution cost will be 0.5, how to write these cost in perl? I
have the code for the cost=1 case, do not know how to modify the code to
include the new substitution case. Thank you!
below is the perl |
|
s********1 发帖数: 581 | 33 做vision或者graphics的公司要用perl,php,python吗?
这些公司的软件一般是用c++写的。那么软件的用户界面哪?尤其是server端的界面哪
?要用perl,php,python吗?哪种最有用?
谢谢! |
|
o*********e 发帖数: 7 | 34 我使用英文版的windows。请问如何用Perl script处理中文文件?需从CPAN上下载什么
modules和字库吗?有没有简单的example script可以看一看?另外,什么text editor
可以保存utf, unicode, 以便用来写中文Perl script?
再一问题是,我的计算机是64bits 的。我只找到32 bits 的nmake.ext。哪里可找到64
bit 的? |
|
t*******e 发帖数: 119 | 35 正巧我也在初学Perl。Learning Perl这本书很好,精炼幽默。 |
|
H******d 发帖数: 98 | 36 在看《Learning Perl》(小骆驼),几百页看得头都大了,就只想快速入门并且应付
面试
求推荐Perl script的快速入门资料,谢谢! |
|
d***g 发帖数: 2 | 37 I can run my perl programs in DOS mode. I've checked the
server execute box in the 'Advanced Options' menu. But when
i try to run a 'abc.pl',the server says:
'HTTP Error 403
403.1 Forbidden: Execute Access Forbidden
This error can be caused if you try to execute a CGI, ISAPI,
or other executable program from a directory that does not
allow
programs to be executed.'
So it seems that the server still can't use Perl. The server
works fine for other cgi programs written in C.
My project needs to be |
|
y*********r 发帖数: 3 | 38 I need help with accessing Oracle (Solaris) thru perl DBI. Any suggestions are
appreciated. Here is the description.
Oracle to be accessed uses kerberos authentication (via Operating System,
Solaris here). I need to use Perl DBI to query the DB. I can access the DB
using DBI for non-kerberos users (see the following test program) but could
not do it for kerberos users (what arguments should I pass in to connect?).
Any one can give me suggestions? Thanks.
The test program
#!/usr/local/bin/perl5 - |
|
p*********e 发帖数: 17 | 39 Hi, I have a function to get data from a locally stored data file by "tie"ing
a hash with it. This is written as the NON-OO perl program;
I wrote a non-OO perl program to get the data from it and it worked well.
But my OO program could not get the data out, although it could communicate
well
with this function FindByArchiveDate, i.e. FindByArchiveDate could accept the
input correctly and return a fixed a value assigned by me.
After I put several debugging comments in the function FindByArchiveDa |
|
p*********e 发帖数: 17 | 40 Verys trange that my command line perl script could get the data
from "tie %myHash, "DB_file" "myDatabasefile" successfully, but my
on line script could not. Any body know the possible reason?
Thanks a lot! |
|
y*****a 发帖数: 171 | 41 RHEL 5.3 has perl 5.8.8,
yum install perl |
|
r**u 发帖数: 1567 | 42 想用grep+perl regular expression在文件里找一些东西,但是遇到这个问题。如何解
决?多谢
grep: Support for the -P option is not compiled into this --disable-perl-
regexp binary |
|
b****j 发帖数: 78 | 43 one line perl grepper:
perl -nle '/regular expression/ and print' |
|
h*******c 发帖数: 248 | 44 由于项目的原因从perl转python三个多月了。最喜欢python的地方是numpy。最痛恨的
事,即使是语法错误,没执行到地方也不报错。其他还好,风格不同而已。如果是项目
比较大,持续时间长,我会倾向于用python,但大多数时候,我觉得perl很好。 |
|
v****n 发帖数: 7841 | 45 【 以下文字转载自 Programming 讨论区 】
发信人: vonion (fish smell pork slip), 信区: Programming
标 题: 包子求助一道题 Perl
发信站: BBS 未名空间站 (Tue Jul 13 23:18:13 2010, 美东)
最好能分析一下, 谢谢~
What does this do:
`$=`;$_=\%!;($_)=/(.)/;$==++$|;($.,$/,$,,$\,$",$;,$^,$#,$~,$*,$:,@%)=($!=~/(
.)(.).(.)(.)(.)(.)..(.)(.)(.)..(.)......(.)/,$"),$=++;$.++;$.++;$_++;$_++;($
_,$\,$,)=($~.$"."$;$/$%[$?]$_$\$,$:$%[$?]",$"&$~,$#,);$,++;$,++;$^|=$";`$_$\
$,$/$:$;$~$*$%[$?]$.$~$*${#}$%[$?]$;$\$"$^$~$*.>&$=`
Syntax is Perl
after reformat:
`$=`;
$_ |
|
b****n 发帖数: 144 | 46 【 以下文字转载自 Programming 讨论区 】
发信人: barron (barron), 信区: Programming
标 题: Perl问题求助
发信站: BBS 未名空间站 (Wed Sep 22 15:09:54 2010, 美东)
我用perl写了一个读取1.7M txt文件到string array,然后进行一些字符串替换,再将
string array存入一个新的txt文件的小程序,可是新建的新文件没有多多少内容,siz
e却变成了8M,而且每行末尾有些乱码,做了dos2unix以后,乱码消失,size不变。。。
请问这个可能是什么问题,怎样才能保持文件的size不变? 谢谢! |
|
m*********g 发帖数: 273 | 47 Is the text from windows or unix?
Look out for the new line character!!!
With so little information, I can not help much.
Also try to use strict every time you use Perl. Your Perl style can give
you a lot trouble if the program goes a little longer.
Personally, I don't like $_, @_. They make program so unreadable. |
|
C********s 发帖数: 120 | 48 先看清你的浏览器是怎么得到你想得到的页面的,清空你的浏览器的历史、缓存、
cookies 等等,然后安一个 httpfox for firefox 或者 wireshark,然后去你想去的
网页。仔细看看每一次 http transaction,在你的 perl code 里重复这些步骤。如果
页面操作涉及到比较复杂的 javascript,单用 perl 可能是不够的。 |
|
gm 发帖数: 189 | 49 【 以下文字转载自 Programming 讨论区 】
发信人: gm (gm), 信区: Programming
标 题: 怎样用perl批量重命名文件
发信站: BBS 未名空间站 (Thu Dec 8 18:38:54 2011, 美东)
有一系列文件,名字分别叫out.1 , out.2 等等,但是序号不连续。比如out.9 后面不
是out.10 而是out.11,怎样用perl或者linux命令把这一系列文件重新命名,让序号连
续呢?谢谢。 |
|
w*s 发帖数: 7227 | 50 Don't know how to describe this clearly,
i have a simple perl CGI code, running with lighttpd.
it has checkbox, if it's set, when you click "submit".
it will trigger my code in the background,
`set_my_value.exe 1`.
if no check that checkbox,
`set_my_value.exe 0`.
Now when i run Rapid7 nexpose, which is a security check application,
it can call my "set_my_value" directly.
So even i didn't check/uncheck the checkbox.
It's setting the values.
Seems lighttpd doesn't support perl taint mode (someone ... 阅读全帖 |
|