On Fri, 16 Jun 2006, Mattias Gaertner wrote:

Regular expressions are great for simple text conversions. I use them very
often, except when I need speed.
Under Perl you can create a Trim function easily, but because Perl's regex
are faster compared to other operations, your choice will be nearly always
to use a regex. This is not true for FPC. Here you can easily beat regular
expressions in speed and memory.

If you prefer some features of Perl (or any scripting language), then why
don't you create a unit with functions for your preferred operations? Add
regex, assoc. arrays, sort functions and the system function and you can
write small pascal programs as dirty and quick as perl. Your program will
still be easier to read, extend and maintain.
I'm planning to write such a unit and write a wiki page or small article for
perl users.

This kind of stuff can better be added to the FPC packages or the FCL,

it's nothing visual, after all...

Maybe there are other goodies in Lazarus that qualify ?

Michael.

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to