rssHome » Perl

Perl Best Practices

Perl Best Practices

Book Description

Many programmers code by instinct, relying on convenient habits or a “style” they picked up early on. They aren’t conscious of all the choices they make, like how they format their source, the names they use for variables, or the kinds of loops they use. They’re focused entirely on problems they’re solving, solutions they’re creating, and algorithms they’re implementing. So they write code in the way that seems natural, that happens intuitively, and that feels good.

But if you’re serious about your profession, intuition isn’t enough. Best Practices author Damian Conway explains that rules, conventions, standards, and practices not only help programmers communicate and coordinate with one another, they also provide a reliable framework for thinking about problems, and a common language for expressing solutions. This is especially critical in , because the language is designed to offer many ways to accomplish the same task, and consequently it supports many incompatible dialects.

With a good dose of Aussie humor, Dr. Conway (familiar to many in the Perl community) offers 256 guidelines on the art of coding to help you write better Perl code–in fact, the best Perl code you possibly can. The guidelines cover code layout, naming conventions, choice of data and control structures, program decomposition, interface design and implementation, modularity, object orientation, error handling, testing, and debugging.

They’re designed to work together to produce code that is clear, robust, efficient, maintainable, and concise, but Dr. Conway doesn’t pretend that this is the one true universal and unequivocal set of best practices. Instead, Perl Best Practices offers coherent and widely applicable suggestions based on real-world experience of how code is actually written, rather than on someone’s ivory-tower theories on how software ought to be created. Download Now »

Automating System Administration with Perl, 2nd Edition

Automating System Administration with Perl, 2nd Edition

Book Description

If you do systems administration work of any kind, you have to deal with the growing complexity of your environment and increasing demands on your time. Automating System Administration with , Second Edition, not only offers you the right tools for your job, but also suggests the best way to approach specific problems and to securely automate recurring tasks. Updated and expanded to cover the latest operating systems, technologies, and modules, this edition of the “Otter Book” will help you:Manage user accounts Monitor filesystems and processes Work with configuration files in important formats such as XML and YAML Administer databases, including , MS-SQL, and Oracle with DBI Work with directory services like LDAP and Active Directory Script email protocols and spam control Effectively create, handle, and analyze log files Administer network name and configuration services, including NIS, DNS and DHCP Maintain, monitor, and map network services, using technologies and tools such as SNMP, nmap, libpcap, GraphViz and RRDtool Improve filesystem, process, and network security

This edition includes additional appendixes to get you up to speed on technologies such as XML/XPath, LDAP, SNMP, and SQL. With this book in hand and in your toolbox, you can do more with less — fewer resources, less effort, and far less hassle. Download Now »

The Definitive Guide to Catalyst: Writing Extensible, Scalable and Maintainable Perl–Based Web Applications

The Definitive Guide to Catalyst: Writing Extensible, Scalable and Maintainable Perl–Based Web Applications

Book Description

Learn to build web applications with , the popular open source web framework based on the programming language. The Definitive to : Writing Extendable, Scalable, and Maintainable –Based Web Applications is a definitive to Catalyst version 5.8, which will be released in 2009. This book contains

  • Training materials for new and experience programmers.
  • Worked examples and cookbook–style recipes of common web application programming tasks
  • Fundamentals of web application design and best–practice application style

What you’ll learn

  • Write web applications with Catalyst and Perl.
  • Design for extendability and code reuse.
  • Understand deployment options for high– and low–traffic sites.
  • Use DBIx::Class, Moose, and Template Toolkit.
  • Understand the Catalyst dispatcher and request cycle.
  • Deal with common web programming requirements: authentication and authorization, web services, sending e–mail, serving streaming media. Download Now »

Perl by Example, 4th Edition

Perl by Example, 4th Edition

Book Description

by Example, Fourth Edition, is the easiest, most hands-on way to learn . Legendary Silicon Valley programming instructor Ellie Quigley has thoroughly updated her classic to deliver the skills and information today’s users need most–including all-new coverage of database programming and a QuickStart designed to get experienced users up and running fast.

Quigley illuminates every technique with focused, classroom-tested code examples, detailed line-by-line explanations, and real program output. This exceptionally clear, easy-to-understand book takes you from your first script to database-driven applications. It’s the only book you’ll ever need!

New in this edition:
* Perl programming QuickStart: makes first-time Perl programmers productive in just twenty pages
* All-new chapter on using the Perl DBI with the database–plus an easy SQL primer to quickly get you started programming any database
* New introductions to Perl in biology (bioinformatics) and to mod_perl, a Perl interpreter embedded in the server, which allows you to create fast, dynamic content; manage the server; authenticate users; and much more
Download Now »

Intermediate Perl

Intermediate Perl

Book Description

is a versatile, powerful programming language used in a variety of disciplines, ranging from system administration to web programming to database manipulation. One slogan of is that it makes easy things easy and hard things possible. “Intermediate ” is about making the leap from the easy things to the hard ones.Originally released in 2003 as “Learning Objects, References, and Modules” and revised and updated for 5.8, this book offers a gentle but thorough introduction to intermediate programming in . Written by the authors of the best-selling “Learning ,” it picks up where that book left off. Topics include:

  • Packages and namespaces
  • References and scoping
  • Manipulating complex data structures
  • Object-oriented programming
  • Writing and using modules
  • Testing code
  • Contributing to CPAN

Following the successful format of “Learning Perl,” we designed each chapter in the book to be small enough to be read in just an hour or two, ending with a series of exercises to help you practice what you’ve learned. To use the book, you just need to be familiar with the material in “Learning Perl” and have ambition to go further. Download Now »

Practical Text Mining with Perl

Practical Text Mining with Perl

Book Description

This book is devoted to the fundamentals of text mining using , an open-source programming tool that is freely available via the Internet (www..org). It covers mining ideas from several perspectives–statistics, data mining, linguistics, and information retrieval–and provides readers with the means to successfully complete text mining tasks on their own.

The book begins with an introduction to regular expressions, a text pattern methodology, and quantitative text summaries, all of which are fundamental tools of analyzing text. Then, it builds upon this foundation to explore:

  • Probability and texts, including the bag-of-words model
  • Information retrieval techniques such as the TF-IDF similarity measure
  • Concordance lines and corpus linguistics
  • Multivariate techniques such as correlation, principal components analysis, and clustering
  • modules, German, and permutation tests

Each chapter is devoted to a single key topic, and the author carefully and thoughtfully introduces mathematical concepts as they arise, allowing readers to learn as they go without having to refer to additional books. The inclusion of numerous exercises and worked-out examples further complements the book’s student-friendly format. Download Now »