home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.perl
- Path: sparky!uunet!cs.utexas.edu!convex!convex!tchrist
- From: Tom Christiansen <tchrist@convex.COM>
- Subject: Re: Generating reports
- Originator: tchrist@pixel.convex.com
- Sender: usenet@news.eng.convex.com (news access account)
- Message-ID: <1993Jan22.140826.14357@news.eng.convex.com>
- Date: Fri, 22 Jan 1993 14:08:26 GMT
- Reply-To: tchrist@convex.COM (Tom Christiansen)
- References: <C1752I.5Et@cs.psu.edu>
- Nntp-Posting-Host: pixel.convex.com
- Organization: Convex Computer Corporation, Colorado Springs, CO
- X-Disclaimer: This message was written by a user at CONVEX Computer
- Corp. The opinions expressed are those of the user and
- not necessarily those of CONVEX.
- Lines: 36
-
- From the keyboard of flee@cs.psu.edu (Felix Lee):
- :* duplicates information (like output column order) in several places
- :in the script, which makes it painful to make minor changes in the
- :report.
-
- I'd have to see what you're doing, although I certainly take your
- word for it. I'd say in general that you probably need to introduce
- another level on indirection for your indicies, i.e. output column order.
-
- :* ends up simulating data types like records and arrays of records in
- :really painful ways.
-
- Surely, Felix, you of all people, perhaps not even excepting myself,
- have plenty of ways of doing this. You can use associative arrays and
- joined keys, you can use the list of lists via pointers thing, or if you
- really want records, you can use the c2ph-style classes or do what plum
- does with its folder caching (see &activate_folder). If you encapsulate
- these in subroutine calls, I'm not sure why they're "really painful".
-
- :Something I haven't tried yet: generating Perl on the fly. Perhaps
- :this is the best way to deal with Perl's inadequacies in general.
-
- Eval covers a multitude of sins.
-
- :Another problem is Perl doesn't have enough date/time support,
- :something that comes up all the time in analyzing log files.
-
- I use the Cnews getdate function all the time for this. Does
- it somehow not suffice?
-
- --tom
- --
- Tom Christiansen tchrist@convex.com convex!tchrist
- No, I'm not going to explain it. If you can't figure it out, you didn't
- want to know anyway... :-)
- --Larry Wall in <1991Aug7.180856.2854@netlabs.com>
-