http://www.perlmonks.org?node_id=863360


in reply to Re^4: eval to replace die?
in thread eval to replace die?

It doesn't perform a regular expression match, for one.

So now you are demonising regular expressions? Should we scrap regexes all together?

If you've never changed the text of an exception message and then had to change the regex of handlers, good. I have.

And you've never had to restructure your exceptions? I have.

I say again, how is that different?

Look at all the places in the Exception Class example I posted where the (same) name of the exception (class) is embedded inside a string.

Maybe those can be avoided by using Exception::Class better? If so, please enlighten us with an example.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.