On 31 Jul, Dale Dunlea wrote:
> I'm planning to write some code to parse a fairly large (and quite
> poorly structured) text file[1] and then do *very* fancy things with it
> and then output and optimised version of the text file. So my question
> is, should I learn perl and do it that way or should I soldier along
> with C?
Definitely not with C/C++. While fast, it's just too difficult to parse text
in a bug free manner.
As an alternative to perl, you might consider tcl or python, which are IMO much easier to learn than
perl.
Both have much more regular syntax than perl and are either intrinsically or extensionally object
oriented; python intrinsically and tcl with the [incr tcl] extension. Furthermore both python and
tcl are very easy to extend with new functionality implemented in C/C++, because they were designed
to be embedded languages.
--
--Harry Moreau----------------
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!