Subject: | t/edit_file fails with Exporter < 5.58 |
Test fails like this with Exporter 5.57:
t/edit_file...........":edit" is not exported by the File::Slurp module
Can't continue after import errors at t/edit_file.t line 7
BEGIN failed--compilation aborted at t/edit_file.t line 7.
dubious
Test returned status 255 (wstat 65280, 0xff00)
Scalar found where operator expected at (eval 152) line 1, near "'int'
$__val"
(Missing operator before $__val?)
It's quite similar to CPAN RT#29339 and so is the fix (see attached
patch). It's just a case of moving the :edit tag import before other
imports.
Subject: | File-Slurp-9999.18-exports.patch |
--- a/t/edit_file.t
+++ b/t/edit_file.t
@@ -4,7 +4,7 @@
use lib qw(t) ;
-use File::Slurp qw( read_file write_file :edit ) ;
+use File::Slurp qw( :edit read_file write_file ) ;
use Test::More ;
use TestDriver ;