in reply to Re: quick regex help for multiple OR
in thread quick regex help for multiple OR

thanks Dragonchild, this looks like good solution.

Didn't realize you can do that w/ regex
Just wanted to add that, OP should be using below as well.
next unless $line =~ $regex;

Replies are listed 'Best First'.
Re^3: quick regex help for multiple OR
by McDarren (Abbot) on May 13, 2008 at 10:43 UTC
    s/should/could/;

    That's a matter of personal preference.
    In PBP, TheDamian recommends avoiding the use of unless. Mainly because statements can very quickly become quite difficult to read if you start extending them and adding multiple conditions.

    I tend to agree with this view, but as I say - it's really a matter of personal preference.

    Cheers,
    Darren :)