For using modules, the version specified is, by default, the minumum version. The same is true of perl itself, so:
use 5.010; use Text::Diff 1.40;
means that the script must be run using perl 5.10 or newer and must be able to load Text::Diff version 1.40 or newer.
See the docs for use for more detail.
🦛
In reply to Re^3: Code style question -- code review
by hippo
in thread Code style question
by AlexP
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |