Linux.com
Everything Linux and Open Source
Condensing Perl Scripts In Linux and Unix
September 17, 2008 (10:00:00 AM) - 1 year, 2 months ago
Today, we're going to go back a bit (we'll be putting out the final script from our number pool series this Wednesday) and take a look at a subject we've visited before in posts on making our Thesaurus script better and improving our webserver access log parser. Today, we present a fairly simple Perl script that will parse any file consisting of rows of numbers and print out matches meeting certain criteria. This is a fairly banal concept (and most probably well-overdone ;), so the spin we're going to put on it for this 2-parter is to present the Perl script (Suitable for running on any Unix or Linux distro) we've written to do this, first, in its completely "lame" format.
Read in the original layout at: http://www.linux.com/archive/articles/148040