Linux Today: Linux News On Internet Time.

More on LinuxToday

Linux.com: SysAdmin to SysAdmin: Perl's Tie::File Module

Jun 03, 2004, 09:00 (0 Talkback[s])
(Other stories by Brian Jones)


Desktop-as-a-Service Designed for Any Cloud ? Nutanix Frame

"Two factors outshine all others as reasons I became a systems administrator. The first is that, well, I like computers and computing. The second is that I'm not particularly fond of writing code. If I were, I'd probably be a programmer. As it stands, if I can find tools that work, I won't write code. However, inevitably, some site-specific situation will come up for which I have no choice. In that case, I at least want to write very little code. Perl's Tie::File has helped me do that on more than one occasion.

"I'm sure hardcore Perl hackers could leave some crazy code snippets in the comments for this article as examples of the insanity that Tie::File is capable of. However, in my day-to-day work, I'm dealing with system files. Many of them are configuration files, or flat-file databases of one form or another. Tie::File allows me to act on an entire file line by line, instead of bit by bit..."

Complete Story

Related Stories: