⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 v.pm

📁 Altera recommends the following system configuration: * Pentium II 400 with 512-MB system memory (fa
💻 PM
字号:
package V;use Getopt::Std 'getopts';getopts('vp:d:');require Exporter;@ISA = 'Exporter';@EXPORT = qw( dprofpp $opt_v $results $expected report @results );@EXPORT_OK = qw( notok ok $num );$num = 0;$results = $expected = '';$perl = $opt_p || $^X;$dpp = $opt_d || '../utils/dprofpp';$dpp .= '.com' if $^O eq 'VMS';print "\nperl: $perl\n" if $opt_v;if( ! -f $perl ){ die "Where's Perl?" }if( ! -f $dpp ) {     ($dpp = $^X) =~ s@(^.*)[/|\\].*@$1/dprofpp@;    die "Where's dprofpp?" if( ! -f $dpp );}sub dprofpp {	my $switches = shift;        open( D, "$perl \"-I../lib\" $dpp \"$switches\" 2> err |" ) || warn "$0: Can't run. $!\n";	@results = <D>;	close D;	open( D, "<err" ) || warn "$0: Can't open: $!\n";	@err = <D>;	close D;	push( @results, @err ) if @err;	$results = qq{@results};	# ignore Loader (Dyna/Auto etc), leave newline	$results =~ s/^\w+Loader::import//;	$results =~ s/\n /\n/gm;	$results;}sub report {	$num = shift;	my $sub = shift;	my $x;	$x = &$sub;	$x ? &ok : &notok;}sub ok {	print "ok $num\n";}sub notok {	print "not ok $num\n";	print "\nResult\n{$results}\n";	print "Expected\n{$expected}\n";}1;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -