in reply to Re^6: Regex infinite loop?
in thread Regex infinite loop?

The first step in growing from a novice to an earnest student of Perl is never ever write "PERL". The language is called Perl and the implementation is perl, but "PERL" makes you stand out as someone who knows nothing about it and from your code it is clear you are well past that point.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James