| Current Path : /usr/share/doc/perl-CGI-Compile/t/ |
| Current File : //usr/share/doc/perl-CGI-Compile/t/coderef_args.t |
use Test::More;
use Capture::Tiny 'capture_stdout';
use CGI::Compile;
my $sub = CGI::Compile->compile("t/args.cgi");
my $stdout = capture_stdout { $sub->(1,2,3) };
like $stdout, qr/Hello \@_: 1,2,3 \@ARGV: 1,2,3\z/;
done_testing;