3 use Test::More tests => 14;
5 use Devel::Declare 'method' => sub {};
11 test_eval 'qq/method/';
12 test_eval 'q/method/';
15 test_eval 'qw/method/';
22 test_eval 'sub {`method`}'; # compiled to prevent calling arbitrary exe!
23 test_eval 'sub { qx{method} }';
27 local $_=''; # the passing results will act on $_
28 test_eval 'qr/method/';
30 test_eval 's/method//';
31 test_eval 'tr/method/METHOD/';
35 test_eval q{ no warnings 'reserved'; open method, '<', File::Spec->devnull };
42 ok !$@, "$what" or d($@);
46 sub d { # diag the error the first time we get it
49 $seen{$err}++ or diag $err;