http://qs321.pair.com?node_id=353160

scottb has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

Is there a way that I can test whether or not a regular expression will compile without error without actually compiling it (and dieing if it does fail)?

I have a tool I have written where my coworker and I must be adding and removing regular expressions on the fly; as it stands if we make a typo in the regex, the program dies which is highly undesireable.

Thank you,
Scott