$ops{$_} = 'list' for qw/padav/;
$ops{$_} = 'list' for qw/padhv rv2hv/;
$ops{$_} = 'list' for qw/padany flip match entereval readline/;
+$ops{caller} = sub { my @a = caller 0; scalar @a }->();
+$ops{localtime} = do { my @a = localtime; scalar @a };
sub enter {
my ($self, $cv) = @_;
use strict;
use warnings;
-use Test::More tests => 49;
+use Test::More tests => 51;
use Sub::Nary;
[ sub { eval 'return 1, 2' }, 'list' ],
[ sub { return <$x> }, 'list' ],
+
+ [ sub { return caller 0 }, sub { my @a = caller 0; scalar @a }->() ],
+ [ sub { return localtime }, do { my @a = localtime; scalar @a } ],
);
my $i = 1;
use strict;
use warnings;
-use Test::More tests => 35;
+use Test::More tests => 37;
use Sub::Nary;
[ sub { eval '1, 2' }, 'list' ],
[ sub { <$x> }, 'list' ],
+
+ [ sub { caller 0 }, sub { my @a = caller 0; scalar @a }->() ],
+ [ sub { localtime }, do { my @a = localtime; scalar @a } ],
);
my $i = 1;