Subject: | Data::Visitor + UNIVERSAL::can = warnings |
example code:
----
use strict;
use warnings;
use UNIVERSAL::can;
use Data::Visitor::Callback;
Data::Visitor::Callback->new(
plain_value => sub { }
)->visit(1);
----
result:
Called UNIVERSAL::can() as a function, not a method
at /.../lib//Data/Visitor/Callback.pm line 21