in reply to Re: Make $^V and "my" implicit
in thread Make $^V and "my" implicit
In what circumstances could...
use $^V;
...possibly be useful?! You really want a script that imports 5.16 features when it's run under Perl 5.16, and 5.14 features when it's run under Perl 5.14?
The new features in Perl 5.16 are 'unicode_eval', 'evalbytes', 'current_sub', and 'fc'. Does your script use those features?
Yes: then use v5.14 is not sufficient, so use $^V is not sufficient when run under Perl 5.14. So you should explicitly write use v5.16.
No: then use v5.16 would be overkill, so use $^V is overkill when run under Perl 5.16. So you should explicitly write use v5.14.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Make $^V and "my" implicit
by Anonymous Monk on Feb 04, 2014 at 13:48 UTC | |
by tobyink (Canon) on Feb 04, 2014 at 15:27 UTC |