From: "Octavian Rasnita" <[EMAIL PROTECTED]> > If you can use substr(), use it, because it works much faster than > regexp. > > Teddy
Nope. One substr() will of course be quicker than one regexp application, but a loop containing substr() will most of the time slower than a single regexp. You can't make a general statement like this Teddy, there are times when substr() is the best solution and times when regexp is. Just like if you need to saw a thin twig, you'd better use a handsaw, but it you need to cut down a mighty tree you'd better use a chainsaw. Even if it's heavier and takes more time to "start". Jenda ===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz ===== When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in Sourcery -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>