The code being executed by eval ("") returns nothing (()), which is indistinguishable from the value eval returns on failure.
You need
eval "use Cava::Pack; 1"
In reply to Re^3: Conditionally faking a module
by ikegami
in thread Conditionally faking a module
by wanna_code_perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |