San Francisco, CA, December 3, 2013—Some programs are powerful because of their thousands of lines of code, and some are powerful because of what they get done with so little. Perl is a language that harnesses the power of minimal code, letting users automate otherwise mind-numbing tasks with a single line of code.
Perl One-Liners (No Starch Press, November 2013, 168 pp., $24.95, ISBN 9781593275204) contains 130 simple Perl programs that give readers the power to get through the tedious stuff quickly. Originally released as a self-published ebook, Perl One-Liners has been updated and expanded to show readers more ways to solve problems with short, elegant bits of code.
The programs in Perl One-Liners are designed to do one thing, and to do that thing well, such as:
- Encode, decode, replace, or convert strings
- Generate random passwords
- Perform cool math tricks, like using a regular expression to check if a number is prime
- Number lines in a file
- Selectively print lines that match a pattern
- Convert IP addresses to decimal form
It all goes back to one of Perl's slogans: Easy things should be easy and hard things should be possible. "This book illustrates just how easy things can be—and how much can be done with so little code," said PerlDancer contributor David Precious.
Readers who already know Perl will find new ways to hone their skills as author Peteris Krumins dissects the code to give them a deeper understanding of the language. Perl One-Liners is the coder's guide that readers will wonder how they ever did without.
Perl One-Liners is available in bookstores everywhere now.
For more information or to request review copies of the Perl One-Liners, contact KC Crowell at No Starch Press ([email protected], +1.415.863.9900 x100 or visit www.nostarch.com).
No Starch Press Catalog Page
Chapter 4: Calculations (PDF)
Table of Contents
Detailed Table of Contents (PDF)
Publisher: No Starch Press
By Peteris Krumins
ISBN: 9781593275204, $24.95
November 2013, 168 pp.
You Might Also Be Interested In:
Available in fine bookstores everywhere, from http://www.oreilly.com/nostarch, or directly from No Starch Press (http://www.nostarch.com, [email protected], 1-800-420-7240).
About No Starch Press
Founded in 1994, No Starch Press publishes the finest in geek entertainment. Our titles have personality, our authors are passionate, and our books tackle topics that people care about. No Starch Press titles have won the Grand Prize at the San Francisco Book Festival and the Independent Publisher Book Award (the "IPPY") from Independent Publisher.
O'Reilly Media spreads the knowledge of innovators through its books, online services, magazines, and conferences. Since 1978, O'Reilly Media has been a chronicler and catalyst of cutting-edge development, homing in on the technology trends that really matter and spurring their adoption by amplifying "faint signals" from the alpha geeks who are creating the future. An active participant in the technology community, the company has a long history of advocacy, meme-making, and evangelism.
# # #
O'Reilly is a registered trademark of O'Reilly Media, Inc. All other trademarks are the property of their respective owners.