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

  1. Newsgroups: comp.lang.perl
  2. Path: sparky!uunet!spool.mu.edu!uwm.edu!psuvax1!flee
  3. From: flee@cs.psu.edu (Felix Lee)
  4. Subject: Generating reports
  5. Message-ID: <C1752I.5Et@cs.psu.edu>
  6. Sender: news@cs.psu.edu (Usenet)
  7. Nntp-Posting-Host: dictionopolis.cs.psu.edu
  8. Date: Thu, 21 Jan 1993 09:01:20 GMT
  9. Lines: 26
  10.  
  11. Is it just me, or does Perl make a mediocre report-generating
  12. language?
  13.  
  14. Data parsing is fine, but output is screwy.  I can't seem to find a
  15. reasonable way of tabulating data, accumulating data (like totals,
  16. averages, quartiles), and printing the results.
  17.  
  18. Anything I try either
  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. * ends up simulating data types like records and arrays of records in
  23. really painful ways.
  24.  
  25. Something I haven't tried yet: generating Perl on the fly.  Perhaps
  26. this is the best way to deal with Perl's inadequacies in general.
  27. (Other than dumping it for another language:-)
  28.  
  29. Another problem is Perl doesn't have enough date/time support,
  30. something that comes up all the time in analyzing log files.  Yes,
  31. such functions could all be written in Perl, but I'm lazy, and
  32. besides, I did, and they're slow.  Well, in a slow language like Perl,
  33. a little more slowness probably doesn't hurt much.
  34.  
  35. Oh well.  Time to give up the struggle for now.
  36. --
  37.