# Testing the :maxlen modifier -*-perl-*- ######################### use Test; BEGIN { plan tests => 3 }; # We need to catch the output for verification. BEGIN { $ENV{PERL5DEBUGTRACE} = ":warn" } use Debug::Trace qw(:maxlen(56) x1 :nomaxlen x2); ok(1); # If we made it this far, we're ok. ######################### sub x1 { "foo" } sub x2 { "bar" } # warn() interceptor. my $msg; $SIG{__WARN__} = sub { $msg .= "@_" }; my $fl; $msg = ""; $fl = __LINE__ + 1; my @foo = x1(qw(abcde abcdef abcdefg)); ok($msg,<