in reply to Re: Mitigating ". in @INC" for optional dependencies
in thread Mitigating ". in @INC" for optional dependencies
I like it.
Are there any caveats for using the same idiom within modules...
?use Term::ANSIColor; () = eval { local @INC = grep !/^\.$/, @INC; require Win32::Console::A +NSI } if 'MSWin32' eq $^O;
I'm advocating this idiom to any/all module authors using color in order to improve portability, and I don't want to impact their state negatively.
Hopefully, 'Term::Color' will adopt it into it's synopsis text to further the cause.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Mitigating ". in @INC" for optional dependencies
by shmem (Chancellor) on Sep 10, 2016 at 21:22 UTC |