One statement "imports" from Java, the other from Inline::Java. Unless you happen to have a reason to believe they can be combined, it's not likely.
It should be possible to add the version check in there, though.
use Inline (Java => ';', DIRECTORY => ...); use Inline::Java 0.52_90 qw( cast coerce );
I had to put an empty Java instruction which may slow down my program.
Your focus is entirely misplaced. Doing a few small things at compile-time should not have a significant impact on your program's performance.
In reply to Re: use a module: need version, import list and some parameters at the same time
by ikegami
in thread use a module: need version, import list and some parameters at the same time
by ninuzzo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |