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

📄 op

📁 Altera recommends the following system configuration: * Pentium II 400 with 512-MB system memory (fa
💻
📖 第 1 页 / 共 2 页
字号:
    if ( ! $Config{d_getprior} or $^O eq 'os2') { # Locks before fixpak22        print <<EOM ;SKIPPED# getpriority not presentEOM        exit     }}getpriority 1,2;	# OP_GETPRIORITYno warnings 'void' ;getpriority 1,2;	# OP_GETPRIORITYEXPECTUseless use of getpriority in void context at - line 13.######### op.cuse warnings 'void' ;use Config ;BEGIN {    if ( ! $Config{d_getlogin}) {        print <<EOM ;SKIPPED# getlogin not presentEOM        exit     }}getlogin ;			# OP_GETLOGINno warnings 'void' ;getlogin ;			# OP_GETLOGINEXPECTUseless use of getlogin in void context at - line 13.######### op.cuse warnings 'void' ;use Config ; BEGIN {if ( ! $Config{d_socket}) {    print <<EOM ;SKIPPED# getsockname not present# getpeername not present# gethostbyname not present# gethostbyaddr not present# gethostent not present# getnetbyname not present# getnetbyaddr not present# getnetent not present# getprotobyname not present# getprotobynumber not present# getprotoent not present# getservbyname not present# getservbyport not present# getservent not presentEOM    exit } }getsockname STDIN ;	# OP_GETSOCKNAMEgetpeername STDIN ;	# OP_GETPEERNAMEgethostbyname 1 ;	# OP_GHBYNAMEgethostbyaddr 1,2;	# OP_GHBYADDRgethostent ;		# OP_GHOSTENTgetnetbyname 1 ;	# OP_GNBYNAMEgetnetbyaddr 1,2 ;	# OP_GNBYADDRgetnetent ;		# OP_GNETENTgetprotobyname 1;	# OP_GPBYNAMEgetprotobynumber 1;	# OP_GPBYNUMBERgetprotoent ;		# OP_GPROTOENTgetservbyname 1,2;	# OP_GSBYNAMEgetservbyport 1,2;	# OP_GSBYPORTgetservent ;		# OP_GSERVENTno warnings 'void' ;getsockname STDIN ;	# OP_GETSOCKNAMEgetpeername STDIN ;	# OP_GETPEERNAMEgethostbyname 1 ;	# OP_GHBYNAMEgethostbyaddr 1,2;	# OP_GHBYADDRgethostent ;		# OP_GHOSTENTgetnetbyname 1 ;	# OP_GNBYNAMEgetnetbyaddr 1,2 ;	# OP_GNBYADDRgetnetent ;		# OP_GNETENTgetprotobyname 1;	# OP_GPBYNAMEgetprotobynumber 1;	# OP_GPBYNUMBERgetprotoent ;		# OP_GPROTOENTgetservbyname 1,2;	# OP_GSBYNAMEgetservbyport 1,2;	# OP_GSBYPORTgetservent ;		# OP_GSERVENTINIT {   # some functions may not be there, so we exit without running   exit;}EXPECTUseless use of getsockname in void context at - line 24.Useless use of getpeername in void context at - line 25.Useless use of gethostbyname in void context at - line 26.Useless use of gethostbyaddr in void context at - line 27.Useless use of gethostent in void context at - line 28.Useless use of getnetbyname in void context at - line 29.Useless use of getnetbyaddr in void context at - line 30.Useless use of getnetent in void context at - line 31.Useless use of getprotobyname in void context at - line 32.Useless use of getprotobynumber in void context at - line 33.Useless use of getprotoent in void context at - line 34.Useless use of getservbyname in void context at - line 35.Useless use of getservbyport in void context at - line 36.Useless use of getservent in void context at - line 37.######### op.cuse warnings 'void' ;*a ; # OP_RV2GV$a ; # OP_RV2SV@a ; # OP_RV2AV%a ; # OP_RV2HVno warnings 'void' ;*a ; # OP_RV2GV$a ; # OP_RV2SV@a ; # OP_RV2AV%a ; # OP_RV2HVEXPECTUseless use of a variable in void context at - line 3.Useless use of a variable in void context at - line 4.Useless use of a variable in void context at - line 5.Useless use of a variable in void context at - line 6.######### op.cuse warnings 'void' ;"abc"; # OP_CONST7 ; # OP_CONSTno warnings 'void' ;"abc"; # OP_CONST7 ; # OP_CONSTEXPECTUseless use of a constant in void context at - line 3.Useless use of a constant in void context at - line 4.######### op.c#use warnings 'misc' ;my $a ; my @a = () ; my %a = () ; my $b = \@a ; my $c = \%a ;@a =~ /abc/ ;@a =~ s/a/b/ ;@a =~ tr/a/b/ ;@$b =~ /abc/ ;@$b =~ s/a/b/ ;@$b =~ tr/a/b/ ;%a =~ /abc/ ;%a =~ s/a/b/ ;%a =~ tr/a/b/ ;%$c =~ /abc/ ;%$c =~ s/a/b/ ;%$c =~ tr/a/b/ ;{no warnings 'misc' ;my $a ; my @a = () ; my %a = () ; my $b = \@a ; my $c = \%a ;@a =~ /abc/ ;@a =~ s/a/b/ ;@a =~ tr/a/b/ ;@$b =~ /abc/ ;@$b =~ s/a/b/ ;@$b =~ tr/a/b/ ;%a =~ /abc/ ;%a =~ s/a/b/ ;%a =~ tr/a/b/ ;%$c =~ /abc/ ;%$c =~ s/a/b/ ;%$c =~ tr/a/b/ ;}EXPECTApplying pattern match (m//) to @array will act on scalar(@array) at - line 5.Applying substitution (s///) to @array will act on scalar(@array) at - line 6.Applying transliteration (tr///) to @array will act on scalar(@array) at - line 7.Applying pattern match (m//) to @array will act on scalar(@array) at - line 8.Applying substitution (s///) to @array will act on scalar(@array) at - line 9.Applying transliteration (tr///) to @array will act on scalar(@array) at - line 10.Applying pattern match (m//) to %hash will act on scalar(%hash) at - line 11.Applying substitution (s///) to %hash will act on scalar(%hash) at - line 12.Applying transliteration (tr///) to %hash will act on scalar(%hash) at - line 13.Applying pattern match (m//) to %hash will act on scalar(%hash) at - line 14.Applying substitution (s///) to %hash will act on scalar(%hash) at - line 15.Applying transliteration (tr///) to %hash will act on scalar(%hash) at - line 16.Can't modify private array in substitution (s///) at - line 6, near "s/a/b/ ;"BEGIN not safe after errors--compilation aborted at - line 18.######### op.cuse warnings 'syntax' ;my $a, $b = (1,2);no warnings 'syntax' ;my $c, $d = (1,2);EXPECTParentheses missing around "my" list at - line 3.######### op.cuse warnings 'syntax' ;local $a, $b = (1,2);no warnings 'syntax' ;local $c, $d = (1,2);EXPECTParentheses missing around "local" list at - line 3.######### op.cuse warnings 'bareword' ;print (ABC || 1) ;no warnings 'bareword' ;print (ABC || 1) ;EXPECTBareword found in conditional at - line 3.########--FILE-- abc--FILE--# op.cuse warnings 'misc' ;open FH, "<abc" ;$x = 1 if $x = <FH> ;no warnings 'misc' ;$x = 1 if $x = <FH> ;EXPECTValue of <HANDLE> construct can be "0"; test with defined() at - line 4.######### op.cuse warnings 'misc' ;opendir FH, "." ;$x = 1 if $x = readdir FH ;no warnings 'misc' ;$x = 1 if $x = readdir FH ;closedir FH ;EXPECTValue of readdir() operator can be "0"; test with defined() at - line 4.######### op.cuse warnings 'misc' ;$x = 1 if $x = <*> ;no warnings 'misc' ;$x = 1 if $x = <*> ;EXPECTValue of glob construct can be "0"; test with defined() at - line 3.######### op.cuse warnings 'misc' ;%a = (1,2,3,4) ;$x = 1 if $x = each %a ;no warnings 'misc' ;$x = 1 if $x = each %a ;EXPECTValue of each() operator can be "0"; test with defined() at - line 4.######### op.cuse warnings 'misc' ;$x = 1 while $x = <*> and 0 ;no warnings 'misc' ;$x = 1 while $x = <*> and 0 ;EXPECTValue of glob construct can be "0"; test with defined() at - line 3.######### op.cuse warnings 'misc' ;opendir FH, "." ;$x = 1 while $x = readdir FH and 0 ;no warnings 'misc' ;$x = 1 while $x = readdir FH and 0 ;closedir FH ;EXPECTValue of readdir() operator can be "0"; test with defined() at - line 4.######### op.cuse warnings 'redefine' ;sub fred {}sub fred {}no warnings 'redefine' ;sub fred {}EXPECTSubroutine fred redefined at - line 4.######### op.cuse warnings 'redefine' ;sub fred () { 1 }sub fred () { 1 }no warnings 'redefine' ;sub fred () { 1 }EXPECTConstant subroutine fred redefined at - line 4.######### op.cuse warnings 'redefine' ;format FRED =.format FRED =.no warnings 'redefine' ;format FRED =.EXPECTFormat FRED redefined at - line 5.######### op.cuse warnings 'deprecated' ;push FRED;no warnings 'deprecated' ;push FRED;EXPECTArray @FRED missing the @ in argument 1 of push() at - line 3.######### op.cuse warnings 'deprecated' ;@a = keys FRED ;no warnings 'deprecated' ;@a = keys FRED ;EXPECTHash %FRED missing the % in argument 1 of keys() at - line 3.######### op.cuse warnings 'syntax' ;exec "$^X -e 1" ; my $aEXPECTStatement unlikely to be reached at - line 4.	(Maybe you meant system() when you said exec()?)######### op.cuse warnings 'deprecated' ;my @a; defined(@a);EXPECTdefined(@array) is deprecated at - line 3.	(Maybe you should just omit the defined()?)######### op.cuse warnings 'deprecated' ;defined(@a = (1,2,3));EXPECTdefined(@array) is deprecated at - line 3.	(Maybe you should just omit the defined()?)######### op.cuse warnings 'deprecated' ;my %h; defined(%h);EXPECTdefined(%hash) is deprecated at - line 3.	(Maybe you should just omit the defined()?)######### op.cno warnings 'syntax' ;exec "$^X -e 1" ; my $aEXPECT######### op.csub fred();sub fred($) {}EXPECTPrototype mismatch: sub main::fred () vs ($) at - line 3.######### op.c$^W = 0 ;sub fred() ;sub fred($) {}{    no warnings 'prototype' ;    sub Fred() ;    sub Fred($) {}    use warnings 'prototype' ;    sub freD() ;    sub freD($) {}}sub FRED() ;sub FRED($) {}EXPECTPrototype mismatch: sub main::fred () vs ($) at - line 4.Prototype mismatch: sub main::freD () vs ($) at - line 11.Prototype mismatch: sub main::FRED () vs ($) at - line 14.######### op.cuse warnings 'syntax' ;join /---/, 'x', 'y', 'z';EXPECT/---/ should probably be written as "---" at - line 3.######### op.c [Perl_peep]use warnings 'prototype' ;fred() ; sub fred ($$) {}no warnings 'prototype' ;joe() ; sub joe ($$) {}EXPECTmain::fred() called too early to check prototype at - line 3.######### op.c [Perl_newATTRSUB]--FILE-- abc.pmuse warnings 'void' ;BEGIN { $| = 1; print "in begin\n"; }CHECK { print "in check\n"; }INIT { print "in init\n"; }END { print "in end\n"; }print "in mainline\n";1;--FILE--use abc;delete $INC{"abc.pm"};require abc;do "abc.pm";EXPECTin beginin mainlinein checkin initin beginToo late to run CHECK block at abc.pm line 3.Too late to run INIT block at abc.pm line 4.in mainlinein beginToo late to run CHECK block at abc.pm line 3.Too late to run INIT block at abc.pm line 4.in mainlinein endin endin end######### op.c [Perl_newATTRSUB]--FILE-- abc.pmno warnings 'void' ;BEGIN { $| = 1; print "in begin\n"; }CHECK { print "in check\n"; }INIT { print "in init\n"; }END { print "in end\n"; }print "in mainline\n";1;--FILE--require abc;do "abc.pm";EXPECTin beginin mainlinein beginin mainlinein endin end

⌨️ 快捷键说明

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