Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^4: Help Changing use into require/import

by stevieb (Canon)
on Mar 07, 2018 at 22:06 UTC ( #1210486=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1210486]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2021-02-25 20:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?