cwd is no longer in @INC in new perl versions

This commit is contained in:
Juerd Waalboer 2017-02-18 22:30:52 +01:00
parent 5a10c8f8a2
commit b0ee7e88bf
8 changed files with 14 additions and 1 deletions

13
lib/RevBank/Eval.pm Normal file
View file

@ -0,0 +1,13 @@
package RevBank::Eval;
# This function is used so strings can be eval'ed in a clean lexical
# environment.
sub clean_eval { eval shift }
# No, it's not scary. We're using string eval to load plugins, just as it would
# be used to load modules. As we're not executing user input, this is really
# NOT a security bug.
1;