Re: [SLUG] Re: A question of databases

From: Chad Perrin (perrin@apotheon.com)
Date: Tue Dec 07 2004 - 01:59:13 EST


#!/usr/bin/Perl -w
use strict;

--
Chuck Hast wrote:

> The present application writes the data to a flat file. The guy who does > the app is going re-work the app so that it can write directly to a db > using ODBC or probably JDBC, as he is looking at re-writing in Java > so that we are not chained to the windows environment.

You're talking about manipulating plain text, right? Have you considered Perl? If, for whatever reason, you (all who are involved) don't want to consider Perl for this, feel free to ignore this, but some of the reasons to consider Perl for this follow:

1. Perl can be very terse/succinct.

2. Perl was designed for text manipulation, and is still possibly the best (most capable/flexible/powerful) text manipulation language available.

3. Perl is OO-capable (in case someone hesitates based on wanting to use "an object-oriented language").

4. Perl interfaces quite easily with SQL database managers (so I'm told -- I haven't tried yet).

5. Perl, either through the CGI or by way of mod_perl (or both), can very easily be used to format data from the database for display in a web browser. If you run it server-side through a web interface (or any other interface, if you feel like creating or adapting another to suit your purposes), you don't even really have to worry about whether it runs on multiple OSes.

6. In case you still want to run apps on clients, Perl interpreters exist for Windows, Unix, and MacOS environments.

-- print substr("Just another Perl hacker", 0, -2); ----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 20:34:18 EDT