I have the following code running on Strawberry perl 32 bit 5.14.2 and it gives the error shown in the titel. It is down to the use open line but I don't understand why.
use open ':std', ':encoding(utf8)'; use Test::More; my $has_test_nowarnings = 1; eval "require Test::NoWarnings"; $has_test_nowarnings = undef if $@; done_testing();
The full error is Useless use of a constant (ict) in void context at I:/strawberry-perl-5.14.2.1-3 2bit-portable/perl/vendor/lib/Test/NoWarnings.pm line 3. I don't get that error with 64 bit strawberry perl. The line 3 referred to is "use strict;".
In reply to Useless use of a constant (ict) in void context by mje
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |