This first article of a four-part series is an introduction to Ruby programming. Readers who know how to use some other scripting language, such as Perl, will benefit most from this series. The exploration into Ruby begins with a discussion of variables, quotes, arrays, objects, and methods. Subsequent articles in this Ruby series will deal with more advanced topics, including developing graphical applications and using Ruby with databases.
Randal Schwartz (author of popular titles Learning Perl and Programming Perl) writes monthly columns for WebTechniques magazine dealing with CGI and other web-related issues. This archive contains fully searchable text of all published columns, as well as the programs in downloadable form.
A mainstay of the Perl culture, JAPH is a short script that produces the output "Just another Perl hacker." Although written for the beginner or intermediate Perl programmer, this article examines a few simple examples of the JAPH genre that will surprise and engage even the most seasoned devotee.
Genetic programming uses mutation and replication to produce algorithms for creating ever-improving computer programs. In this column, you'll get to know the genetic algorithm in simple terms. This article provides Perl implementations for some specific tasks, adaptable for generic use.
UNIX system administration is easier with the right tools. This article presents ideas on the use of Perl to streamline and foolproof system administration. The system configuration engine, cfengine, is an extremely important tool in this context. Article includes code snipets.
Learn through examples how to use the Perl pack function to concatenate into a string a list of values converted according to the formats specified by a template. A lot of commented examples are provided to help you better understand how to use the pack function in your scripts.