in reply to How could I make this code more optimized

The things in @Messages should be qr//'ed regexes. That will definitely make your regex stuff go faster. (Or did you say you already did that?) And if you only use $key for subscripting the hash, why not change keys %hash to values %hash? That way you can avoid using $hash{$key} over and over and over again.

_____________________________________________________
Jeff[japhy]Pinyan: Perl, regex, and perl hacker.
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;

  • Comment on Re: How could I make this code more optimized

Replies are listed 'Best First'.
Re: Re: How could I make this code more optimized
by belg4mit (Prior) on Feb 06, 2002 at 21:09 UTC
    ++! The power of aliases, but it never occured to me do that, just changed Triple syntax getopt to use it, Thanks!

    --
    perl -pe "s/\b;([st])/'\1/mg"