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


in reply to Re^3: Help Changing use into require/import
in thread Help Changing use into require/import

It's pretty rare that the issues I pointed out will crop up, but I thought I'd raise them here just in case.

I hate to call it a "race condition" (because technically it isn't), but it is something to be aware of, and I found out about the 1; trick after spending hours sorting out why some of my tests were failing (a previous call to eval's error was being reset, causing all sorts of grief later on).

Only wanted to state it here as although I don't believe it's an official "best practice" or "perl idiom", it really ought to be :)

Besides, I explicitly don't like string eval, so avoid it wherever feasible/possible.