home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / perl / 7691 < prev    next >
Encoding:
Text File  |  1993-01-06  |  893 b   |  30 lines

  1. Newsgroups: comp.lang.perl
  2. Path: sparky!uunet!pilchuck!davidj
  3. From: davidj@Data-IO.COM (David Jablonski)
  4. Subject: How do I do scanf() in Perl?
  5. Message-ID: <1993Jan4.172656.22413@data-io.com>
  6. Sender: news@data-io.com (The News)
  7. Organization: Data I/O Corporation
  8. Date: Mon, 4 Jan 1993 17:26:56 GMT
  9. Lines: 19
  10.  
  11.  
  12. Hello,
  13.  
  14.         I am writing an application that needs to take records in the
  15. following printf-like format and split up the various fields:
  16.  
  17.         %3d,"%s",%d,%f,"%s","%s",%d,%f
  18.  
  19.         The strings may or may not contain commas.
  20.  
  21.         I have been able to do this with a couple of split() commands
  22. and some other tricks but it would sure be nice if I could do it as
  23. clearly and concisely as good old fscanf().  Has anyone out there
  24. found a good way to do this?
  25.  
  26.         Please reply to davidj@Data-IO.COM.  Thanks for your help.
  27.  
  28.                                         --David
  29.  
  30.