TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Is Perl still useful in 2014?

19 点作者 jozi9超过 10 年前
On what areas is it used? What can I learn from it as a language?

7 条评论

csirac2超过 10 年前
Perl I think, if nothing else, shows a great example of how a language can evolve dramatically. You can almost date the code you&#x27;re reading (or the programmer, or the age of the online tutorials the coder read) based on style of the code.<p>I&#x27;ve been paid to write perl in a team maintaining high-volume web properties and internal APIs for a large telco, and I also spent a few years in a Bioinformatics role which used it a fair bit at a national science agency (the research community in that particular corner of the discipline had some pretty awesome tools&#x2F;libraries written in perl, but the full gamut of stuff we used also included ruby, python, R, C, Fortran...)<p>Just a few days ago I wrote how I missed Perl&#x27;s Moose OO framework now that I&#x27;m doing mostly Python [1] [2], and that interestingly it&#x27;s this that has prompted me to think more seriously about using a more strongly&#x2F;statically typed language for large projects in future.<p>[1] <a href="https://news.ycombinator.com/item?id=8627143" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=8627143</a> [2] <a href="https://news.ycombinator.com/item?id=8627819" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=8627819</a>
评论 #8644450 未加载
arghnoname超过 10 年前
Of course it&#x27;s still useful. It&#x27;s as useful as it ever was, but now there are serious competitors in spaces that it used to dominate.<p>I know several dynamic languages and perl is still my go to choice for smaller jobs. Personal preference perhaps.
latj超过 10 年前
Perl is still used in bioinformatics daily. People can write for days about why to use x instead of Perl, but at the end of the day, people can use modern perl 5 to do anything anyone can do in any other technical community.<p>The only serious downside to Perl (which is a pretty serious one I&#x27;ll admit) is that it might be harder to lure in good programmers. I have met plenty of Perl programmers who advocate Perl because they are afraid to learn anything else. Still, I know a lot of Perl programmers who are so good they are not insecure and simply enjoy using it.<p>At this point, I only use Perl for ad-hoc data munging-- things that I could just as easily use python for.
评论 #8648779 未加载
esaym超过 10 年前
I pretty much only use perl. And use it every day. What can you learn? What ever you want, you can use any paradigm: oop, functional, procedural, ect. You can make webapps, or database driven apps. To really learn you are going to have to make it to one of the perl conferences though. I used perl for 3 years, but at my first perl conference, I learned more in a couple of days and than the last 3 years....
itl12超过 10 年前
Would Perl be a good langauge to learn if you were looking for a niche?
评论 #8688006 未加载
atsaloli超过 10 年前
What can you learn from PERL? How about regular expressions?<p>PCRE has been widely adopted. <a href="http://www.PCRE.org/" rel="nofollow">http:&#x2F;&#x2F;www.PCRE.org&#x2F;</a>
mc_hammer超过 10 年前
yea its still used for shell&#x2F;web&#x2F;config management. i would only use it for data conversion and shell scripts anymore. not serious: you can learn good and bad of language design. i guess its going away b&#x2F;c u can use php&#x2F;node&#x2F;ruby&#x2F;python for scripts more and there are more stand alone apps for shell to do jobs you used have to code by hand in perl.