Description
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.
Reviews
There are no reviews yet.