Perl One-Liners

Perl One-Liners PDF Author: Peteris Krumins
Publisher: No Starch Press
ISBN: 159327520X
Category : Computers
Languages : en
Pages : 172

Book Description
Part of the fun of programming in Perl lies in tackling tedious tasks with short, efficient, and reusable code. Often, the perfect tool is the one-liner, a small but powerful program that fits in one line of code and does one thing really well. In Perl One-Liners, author and impatient hacker Peteris Krumins takes you through more than 100 compelling one-liners that do all sorts of handy things, such as manipulate line spacing, tally column values in a table, and get a list of users on a system. This cookbook of useful, customizable, and fun scripts will even help hone your Perl coding skills, as Krumins dissects the code to give you a deeper understanding of the language. You'll find one-liners that: * Encode, decode, and convert strings * Generate random passwords * Calculate sums, factorials, and the mathematical constants π and e * Add or remove spaces * Number lines in a file * Print lines that match a specific pattern * Check to see if a number is prime with a regular expression * Convert IP address to decimal form * Replace one string with another And many more! Save time and sharpen your coding skills as you learn to conquer those pesky tasks in a few precisely placed keystrokes with Perl One-Liners.

Perl One-Liners

Perl One-Liners PDF Author: Peteris Krumins
Publisher: No Starch Press
ISBN: 1593275692
Category : Computers
Languages : en
Pages : 172

Book Description
Part of the fun of programming in Perl lies in tackling tedious tasks with short, efficient, and reusable code. Often, the perfect tool is the one-liner, a small but powerful program that fits in one line of code and does one thing really well. In Perl One-Liners, author and impatient hacker Peteris Krumins takes you through more than 100 compelling one-liners that do all sorts of handy things, such as manipulate line spacing, tally column values in a table, and get a list of users on a system. This cookbook of useful, customizable, and fun scripts will even help hone your Perl coding skills, as Krumins dissects the code to give you a deeper understanding of the language. You'll find one-liners that: –Encode, decode, and convert strings –Generate random passwords –Calculate sums, factorials, and the mathematical constants pi and e –Add or remove spaces –Number lines in a file –Print lines that match a specific pattern –Check to see if a number is prime with a regular expression –Convert IP address to decimal form –Replace one string with another And many more! Save time and sharpen your coding skills as you learn to conquer those pesky tasks in a few precisely placed keystrokes with Perl One-Liners.

Mastering Perl

Mastering Perl PDF Author: brian d foy
Publisher: "O'Reilly Media, Inc."
ISBN: 1449364977
Category : Computers
Languages : en
Pages : 397

Book Description
Take the next step toward Perl mastery with advanced concepts that make coding easier, maintenance simpler, and execution faster. Mastering Perl isn't a collection of clever tricks, but a way of thinking about Perl programming for solving debugging, configuration, and many other real-world problems you’ll encounter as a working programmer. The third in O’Reilly’s series of landmark Perl tutorials (after Learning Perl and Intermediate Perl), this fully upated edition pulls everything together and helps you bend Perl to your will. Explore advanced regular expressions features Avoid common problems when writing secure programs Profile and benchmark Perl programs to see where they need work Wrangle Perl code to make it more presentable and readable Understand how Perl keeps track of package variables Define subroutines on the fly Jury-rig modules to fix code without editing the original source Use bit operations and bit vectors to store large data efficiently Learn how to detect errors that Perl doesn’t report Dive into logging, data persistence, and the magic of tied variables

Perl Best Practices

Perl Best Practices PDF Author: Damian Conway
Publisher: "O'Reilly Media, Inc."
ISBN: 0596001738
Category : Computers
Languages : en
Pages : 542

Book Description
This book offers a collection of 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. - Publisher

Modern Perl

Modern Perl PDF Author: Chromatic
Publisher: Pragmatic Bookshelf
ISBN: 9781680500882
Category :
Languages : en
Pages : 300

Book Description
A Perl expert can solve a problem in a few lines of well-tested code. Now you can unlock these powers for yourself. Modern Perl teaches you how Perl really works. It's the only book that explains Perl thoroughly, from its philosophical roots to the pragmatic decisions that help you solve real problems--and keep them solved. You'll understand how the language fits together and discover the secrets used by the global Perl community. This beloved guide is now completely updated for Perl 5.22. When you have to solve a problem now, reach for Perl. When you have to solve a problem right, reach for Modern Perl. Discover how to scale your skills from one-liners to asynchronous Unicode-aware web services and everything in between. Modern Perl will take you from novice to proficient Perl hacker. You'll see which features of modern Perl will make you more productive, and which features of this well-loved language are best left in the past. Along the way, you'll take advantage of Perl to write well-tested, clear, maintainable code that evolves with you. Learn how the language works, how to take advantage of the CPAN's immense trove of time-tested solutions, and how to write clear, concise, powerful code that runs everywhere. Specific coverage explains how to use Moose, how to write testable code, and how to deploy and maintain real-world Perl applications. This new edition covers the new features of Perl 5.20 and Perl 5.22, including all the new operators, standard library changes, bug and security fixes, and productivity enhancements. It gives you what you need to use the most up-to-date Perl most effectively, all day, every day. What You Need: Perl 5.16 or newer (Perl 5.20 or 5.22 preferred). Installation/upgrade instructions included.

Learning Perl

Learning Perl PDF Author: Randal Schwartz
Publisher: "O'Reilly Media, Inc."
ISBN: 1449303587
Category : Computers
Languages : en
Pages : 389

Book Description
The sixth edition of this bestselling Perl tutorial includes recent changes to the language. Years of classroom testing and experience helped shape the book's pace and scope, and this edition is packed with exercises that let readers practice the concepts while they follow the text.

Perl Cookbook

Perl Cookbook PDF Author: Tom Christiansen
Publisher: "O'Reilly Media, Inc."
ISBN: 0596554966
Category : Computers
Languages : en
Pages : 967

Book Description
Find a Perl programmer, and you'll find a copy of Perl Cookbook nearby. Perl Cookbook is a comprehensive collection of problems, solutions, and practical examples for anyone programming in Perl. The book contains hundreds of rigorously reviewed Perl "recipes" and thousands of examples ranging from brief one-liners to complete applications.The second edition of Perl Cookbook has been fully updated for Perl 5.8, with extensive changes for Unicode support, I/O layers, mod_perl, and new technologies that have emerged since the previous edition of the book. Recipes have been updated to include the latest modules. New recipes have been added to every chapter of the book, and some chapters have almost doubled in size.Covered topic areas include: Manipulating strings, numbers, dates, arrays, and hashes Pattern matching and text substitutions References, data structures, objects, and classes Signals and exceptions Screen addressing, menus, and graphical applications Managing other processes Writing secure scripts Client-server programming Internet applications programming with mail, news, ftp, and telnet CGI and mod_perl programming Web programming Since its first release in 1998, Perl Cookbook has earned its place in the libraries of serious Perl users of all levels of expertise by providing practical answers, code examples, and mini-tutorials addressing the challenges that programmers face. Now the second edition of this bestselling book is ready to earn its place among the ranks of favorite Perl books as well.Whether you're a novice or veteran Perl programmer, you'll find Perl Cookbook, 2nd Edition to be one of the most useful books on Perl available. Its comfortable discussion style and accurate attention to detail cover just about any topic you'd want to know about. You can get by without having this book in your library, but once you've tried a few of the recipes, you won't want to.

The AWK Programming Language

The AWK Programming Language PDF Author: Alfred V. Aho
Publisher: Addison-Wesley Professional
ISBN: 0138269777
Category : Computers
Languages : en
Pages : 650

Book Description
Awk was developed in 1977 at Bell Labs, and it's still a remarkably useful tool for solving a wide variety of problems quickly and efficiently. In this update of the classic Awk book, the creators of the language show you what Awk can do and teach you how to use it effectively. Here's what programmers today are saying: "I love Awk." "Awk is amazing." "It is just so damn good." "Awk is just right." "Awk is awesome." "Awk has always been a language that I loved." It's easy: "Simple, fast and lightweight." "Absolutely efficient to learn because there isn't much to learn." "3-4 hours to learn the language from start to finish." "I can teach it to new engineers in less than 2 hours." It's productive: "Whenever I need to do a complex analysis of a semi-structured text file in less than a minute, Awk is my tool." "Learning Awk was the best bang for buck investment of time in my entire career." "Designed to chew through lines of text files with ease, with great defaults that minimize the amount of code you actually have to write to do anything." It's always available: "AWK runs everywhere." "A reliable Swiss Army knife that is always there when you need it." "Many systems lack Perl or Python, but include Awk." Register your book for convenient access to downloads, updates, and/or corrections as they become available. See inside book for details.

Intermediate Perl

Intermediate Perl PDF Author: Randal Schwartz
Publisher: "O'Reilly Media, Inc."
ISBN: 1449393098
Category : Computers
Languages : en
Pages : 397

Book Description
"Intermediate Perl" offers a clear roadmap for improving readers' skills and gain working knowledge of Perl's objects, references, and modules--ingredients that make the language so versatile and effective. This book offers a gentle but thorough introduction to intermediate programming in Perl.

Effective Perl Programming

Effective Perl Programming PDF Author: Joseph N. Hall
Publisher: Addison-Wesley
ISBN: 9780201419757
Category : Computers
Languages : en
Pages : 292

Book Description
There is an increasing need for more advanced information about how to write the most effective Perl scripts. This book shows in sixty concise and direct lessons how to tackle and solve common programming obstacles. Effective Perl Programming explains idiomatic Perl, covering the latest release (Version 5), and includes information and useful examples about the structure, functions, and latest capabilities of the language, such as self-documenting object-oriented modules. You can also learn from Hall's answers to real life questions and problems he receives from newsgroups and his Perl seminars.
Proudly powered by WordPress | Theme: Rits Blog by Crimson Themes.