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

  1. Newsgroups: comp.lang.perl
  2. Path: sparky!uunet!math.fu-berlin.de!ira.uka.de!scsing.switch.ch!josef!avalon.physik.unizh.ch!lytras
  3. From: lytras@avalon.physik.unizh.ch (Apostolos Lytras)
  4. Subject: Recognizing first letter in a string
  5. Message-ID: <1993Jan28.135539.28930@ifi.unizh.ch>
  6. Sender: news@ifi.unizh.ch (USENET News Admin)
  7. Nntp-Posting-Host: avalon
  8. Organization: Informatik Club Uni Zurich
  9. Date: Thu, 28 Jan 1993 13:55:39 GMT
  10. Lines: 26
  11.  
  12. Hi,
  13.  
  14. I'd like to read addresses into a database which have been ocr'ed into
  15. an ascii file. The format of an address is something like this:
  16.  
  17. (Dots are spaces, <cr> means carriage return.)
  18.  
  19. Foo.Bar.Bas,.Fooers<cr>
  20. .....South Foo,4509...555.6666<cr>
  21. .....East Foo Too,3...777.9999<cr>
  22.  
  23. And I'd like to get something like:
  24.  
  25. Foo.Bar.Bas,.Fooers,South.Foo,4509,555.6666<cr>
  26. Foo.Bar.Bas,.Fooers,East.Foo.Too,3,777.9999<cr>
  27.  
  28. Like this I sometimes have to handle multiple addresses under one name, how
  29. can I recognise whether a line begins with a space or with a letter?
  30.  
  31. Thanks for your help.
  32. - Apostolos
  33. -- 
  34. Apostolos Lytras, Informatik Club der Uni Zuerich, Sys Admin
  35. Internet: lytras@ifi.unizh.ch          |     lytras@avalon.physik.unizh.ch 
  36.           lytras@amiga.physik.unizh.ch |        jab@ezinfo.vmsmail.ethz.ch
  37. DECnet:   EZINFO::JAB                  |    PSI:      PSI%47931149412::JAB
  38.