全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 winbugs及其他软件专版
2815 9
2014-12-14

Effective Perl.jpg
Effective Perl Programming: Ways to Write Better, More Idiomatic Perl (2nd Edition)

by Joseph N. Hall  (Author), Joshua A. McAdams  (Author), brian d foy  (Author)


Product Details
  • Series: Effective Software Development Series
  • Paperback: 504 pages
  • Publisher: Addison-Wesley Professional; 2 edition (April 29, 2010)
  • Language: English
  • ISBN-10: 0321496949
  • ISBN-13: 978-0321496942
  • Product Dimensions: 7 x 0.6 x 9.1 inches


For years, experienced programmers have relied on Effective Perl Programming to discover better ways to solve problems with Perl. Now, in this long-awaited second edition, three renowned Perl programmers bring together today’s best idioms, techniques, and examples: everything you need to write more powerful, fluent, expressive, and succinct code with Perl.


Nearly twice the size of the first edition, Effective Perl Programming, Second Edition, offers everything from rules of thumb to avoid common pitfalls to the latest wisdom for using Perl modules. You won’t just learn the right ways to use Perl: You’ll learn why these approaches work so well.


New coverage in this edition includes


  • Reorganized and expanded material spanning twelve years of Perl evolution
  • Eight new chapters on CPAN, databases, distributions, files and filehandles, production Perl, testing, Unicode, and warnings
  • Updates for Perl 5.12, the latest version of Perl
  • Systematically updated examples reflecting today’s best idioms






本帖隐藏的内容

Effective Perl Programming.pdf
大小:(6.97 MB)

只需: 5 个论坛币  马上下载




二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2014-12-14 09:52:48
Find the documentation for Perl and its modules

Perl comes with a lot of documentation—more than you’d ever want to put on paper. You’d use a couple of reams of paper and a lot of toner to print it all. We lost count after the documentation got to be around 2,000 pages (on our virtual printer, so no trees harmed).

There is a huge amount of useful information in the documentation files, so it pays to be able to read them, but even more than that, to find information in them. Part of the ability to find what you need is knowledge, and part of it is tools.

The perldoc reader

The perldoc command searches the Perl tree for Perl modules (.pm) with embedded documentation, documentation-only .pod files (Item 82), and installed Perl programs. The perldoc command formats and displays the documentation it finds. To start, readperldoc’s own documentation:

复制代码


二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2014-12-14 18:47:26
Enable new Perl features when you need them

Starting with Perl 5.10, you must explicitly enable new features. This ensures that the latest release of Perl can be backward compatible while at the same time letting people start new work using all of the latest nifty features.

For instance, Perl 5.10 adds a say built-in that is just like print except that it adds the trailing newline for you. Not only is your string a couple of characters shorter, but you don’t have to double-quote the string just for the newline:

复制代码



If someone had already created their own say, their program might break if they run it with Perl 5.10 using the now built-in with the same name. Fortunately, Perl doesn’t enable new features by default:

复制代码


If you want the new features, you can enable them with the new -E switch. It’s just like the -e that lets you specify your program text on the command line, but it also brings in the all of the latest features for your version of Perl:

% perl5.10.1 -E say.pl   # use new features up to 5.10.1% perl5.12.0 -E say.pl   # use new features up to 5.12.0

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2014-12-15 00:33:36
nice nice
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2014-12-15 11:41:20
支持!!!!
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2015-1-11 20:26:29
正在学习Perl,谢谢
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群