home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.perl
- Path: sparky!uunet!pilchuck!davidj
- From: davidj@Data-IO.COM (David Jablonski)
- Subject: How do I do scanf() in Perl?
- Message-ID: <1993Jan4.172656.22413@data-io.com>
- Sender: news@data-io.com (The News)
- Organization: Data I/O Corporation
- Date: Mon, 4 Jan 1993 17:26:56 GMT
- Lines: 19
-
-
- Hello,
-
- I am writing an application that needs to take records in the
- following printf-like format and split up the various fields:
-
- %3d,"%s",%d,%f,"%s","%s",%d,%f
-
- The strings may or may not contain commas.
-
- I have been able to do this with a couple of split() commands
- and some other tricks but it would sure be nice if I could do it as
- clearly and concisely as good old fscanf(). Has anyone out there
- found a good way to do this?
-
- Please reply to davidj@Data-IO.COM. Thanks for your help.
-
- --David
-
-