Librenix  
(Show all Perl articles . . .
)  
Headlines | Linux | Apps | Coding | BSD | Admin | News
Information for Linux System Administration 

E-book: Perl One-Liners Explained

Up
vote
Down

I'm happy to announce my 3rd e-book called "Perl One-Liners Explained."

Perl one-liners are small and awesome Perl programs that fit in a single line of code and they do one thing really well. These things include changing line spacing, numbering lines, doing calculations, converting and substituting text, deleting and printing certain lines, parsing logs, editing files in-place, doing statistics, carrying out system administration tasks, updating a bunch of files at once, and many more.

Here is an example. Suppose you quickly need to generate a random, 8 character password. You can do it quickly with this Perl one-liner:

perl -le 'print map { ("a".."z")[rand 26] } 1..8'

Overall, the e-book has 111 pages and it explains 130 unique one-liners. Many of one-liners are presented in several different ways so the total number of one-liners in the book is over 200.
 read more | mail this link | score:9688 | -pkrumins, February 4, 2012
More Programming articles...

Buy Art Online with Satisfaction Guaranteed

coding headlines

OpenShift Online: a non-developer guide

Develop your own Raspberry Pi OS

Tutorial: Install SVN, Configure multi-protocol access (Ubuntu 11.10)

perl1line.txt: A handy Perl script collection

Add Video Streaming to C/C++ apps with Nex Gen Media Server API

Apache2, mod_rewrite tutorial: Redirect requests by device

 

Firefox sidebar

Site map

Site info

News feed

Features

Login
(to post)

Search

 
Articles are owned by their authors.   © 2000-2012 Ray Yeargin