Subject: | Fails to load on 5.8.8 |
First, thanks for a great module) There's a patch in attachment, that
makes it work on 5.8.8.
Subject: | data-printer.diff |
--- lib/Data/Printer.pm.old 2011-05-31 16:52:49.000000000 +0400
+++ lib/Data/Printer.pm 2011-05-31 16:51:52.000000000 +0400
@@ -289,8 +289,8 @@
eval {
if (my $flags = fcntl($$item, F_GETFL, 0) ) {
- $extra .= $flags & O_WRONLY ? 'write-only'
- : $flags & O_RDWR ? 'read/write'
+ $extra .= ($flags & O_WRONLY) ? 'write-only'
+ : ($flags & O_RDWR) ? 'read/write'
: 'read-only'
;