home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / perl / 7944 < prev    next >
Encoding:
Text File  |  1993-01-22  |  2.2 KB  |  54 lines

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