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

📄 op

📁 source of perl for linux application,
💻
📖 第 1 页 / 共 2 页
字号:
  op.c		AOK     Found = in conditional, should be ==	1 if $a = 1 ;     Use of implicit split to @_ is deprecated	split ;     Use of implicit split to @_ is deprecated	$a = split ;     Useless use of time in void context     Useless use of a variable in void context     Useless use of a constant in void context	time ;	$a ;	"abc"     Useless use of sort in scalar context	my $x = sort (2,1,3);     Applying %s to %s will act on scalar(%s)	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/ ;     Parentheses missing around "my" list at -e line 1.       my $a, $b = (1,2);      Parentheses missing around "local" list at -e line 1.       local $a, $b = (1,2);      Bareword found in conditional at -e line 1.       use warnings 'bareword'; my $x = print(ABC || 1);      Value of %s may be \"0\"; use \"defined\" 	$x = 1 if $x = <FH> ;	$x = 1 while $x = <FH> ;     Subroutine fred redefined at -e line 1.       sub fred{1;} sub fred{1;}      Constant subroutine %s redefined         sub fred() {1;} sub fred() {1;}      Format FRED redefined at /tmp/x line 5.       format FRED =       .       format FRED =       .      Array @%s missing the @ in argument %d of %s() 	push fred ;      Hash %%%s missing the %% in argument %d of %s() 	keys joe ;      Statement unlikely to be reached     	(Maybe you meant system() when you said exec()? 	exec "true" ; my $a     defined(@array) is deprecated     	(Maybe you should just omit the defined()?)	my @a ; defined @a ;	defined (@a = (1,2,3)) ;     defined(%hash) is deprecated     	(Maybe you should just omit the defined()?)	my %h ; defined %h ;         /---/ should probably be written as "---"        join(/---/, @foo);    %s() called too early to check prototype		[Perl_peep]        fred() ; sub fred ($$) {}    Package `%s' not found (did you use the incorrect case?)    Use of /g modifier is meaningless in split    Possible precedence problem on bitwise %c operator	[Perl_ck_bitop]    Mandatory Warnings     ------------------    Prototype mismatch:		[cv_ckproto]        sub fred() ;        sub fred($) {}    Runaway prototype		[newSUB]	TODO    oops: oopsAV		[oopsAV]	TODO    oops: oopsHV		[oopsHV]	TODO    __END__# op.cuse warnings 'syntax' ;1 if $a = 1 ;no warnings 'syntax' ;1 if $a = 1 ;EXPECTFound = in conditional, should be == at - line 3.######### op.cuse warnings 'deprecated' ;split ;no warnings 'deprecated' ;split ;EXPECTUse of implicit split to @_ is deprecated at - line 3.######### op.cuse warnings 'deprecated' ;$a = split ;no warnings 'deprecated' ;$a = split ;EXPECTUse of implicit split to @_ is deprecated at - line 3.######### op.cuse warnings 'deprecated';my (@foo, %foo);%main::foo->{"bar"};%foo->{"bar"};@main::foo->[23];@foo->[23];$main::foo = {}; %$main::foo->{"bar"};$foo = {}; %$foo->{"bar"};$main::foo = []; @$main::foo->[34];$foo = []; @$foo->[34];no warnings 'deprecated';%main::foo->{"bar"};%foo->{"bar"};@main::foo->[23];@foo->[23];$main::foo = {}; %$main::foo->{"bar"};$foo = {}; %$foo->{"bar"};$main::foo = []; @$main::foo->[34];$foo = []; @$foo->[34];EXPECTUsing a hash as a reference is deprecated at - line 4.Using a hash as a reference is deprecated at - line 5.Using an array as a reference is deprecated at - line 6.Using an array as a reference is deprecated at - line 7.Using a hash as a reference is deprecated at - line 8.Using a hash as a reference is deprecated at - line 9.Using an array as a reference is deprecated at - line 10.Using an array as a reference is deprecated at - line 11.######### op.cuse warnings 'void' ; close STDIN ;1 x 3 ;			# OP_REPEAT			# OP_GVSVwantarray ; 		# OP_WANTARRAY			# OP_GV			# OP_PADSV			# OP_PADAV			# OP_PADHV			# OP_PADANY			# OP_AV2ARYLENref ;			# OP_REF\@a ;			# OP_REFGEN\$a ;			# OP_SREFGENdefined $a ;		# OP_DEFINEDhex $a ;		# OP_HEXoct $a ;		# OP_OCTlength $a ;		# OP_LENGTHsubstr $a,1 ;		# OP_SUBSTRvec $a,1,2 ;		# OP_VECindex $a,1,2 ;		# OP_INDEXrindex $a,1,2 ;		# OP_RINDEXsprintf $a ;		# OP_SPRINTF$a[0] ;			# OP_AELEM			# OP_AELEMFAST@a[0] ;			# OP_ASLICE#values %a ;		# OP_VALUES#keys %a ;		# OP_KEYS$a{0} ;			# OP_HELEM@a{0} ;			# OP_HSLICEunpack "a", "a" ;	# OP_UNPACKpack $a,"" ;		# OP_PACKjoin "" ;		# OP_JOIN(@a)[0,1] ;		# OP_LSLICE			# OP_ANONLIST			# OP_ANONHASHsort(1,2) ;		# OP_SORTreverse(1,2) ;		# OP_REVERSE			# OP_RANGE			# OP_FLIP(1 ..2) ;		# OP_FLOPcaller ;		# OP_CALLERfileno STDIN ;		# OP_FILENOeof STDIN ;		# OP_EOFtell STDIN ;		# OP_TELLreadlink 1;		# OP_READLINKtime ;			# OP_TIMElocaltime ;		# OP_LOCALTIMEgmtime ;		# OP_GMTIMEeval { getgrnam 1 };	# OP_GGRNAMeval { getgrgid 1 };	# OP_GGRGIDeval { getpwnam 1 };	# OP_GPWNAMeval { getpwuid 1 };	# OP_GPWUIDprototype "foo";	# OP_PROTOTYPEEXPECTUseless use of repeat (x) in void context at - line 3.Useless use of wantarray in void context at - line 5.Useless use of reference-type operator in void context at - line 12.Useless use of reference constructor in void context at - line 13.Useless use of single ref constructor in void context at - line 14.Useless use of defined operator in void context at - line 15.Useless use of hex in void context at - line 16.Useless use of oct in void context at - line 17.Useless use of length in void context at - line 18.Useless use of substr in void context at - line 19.Useless use of vec in void context at - line 20.Useless use of index in void context at - line 21.Useless use of rindex in void context at - line 22.Useless use of sprintf in void context at - line 23.Useless use of array element in void context at - line 24.Useless use of array slice in void context at - line 26.Useless use of hash element in void context at - line 29.Useless use of hash slice in void context at - line 30.Useless use of unpack in void context at - line 31.Useless use of pack in void context at - line 32.Useless use of join or string in void context at - line 33.Useless use of list slice in void context at - line 34.Useless use of sort in void context at - line 37.Useless use of reverse in void context at - line 38.Useless use of range (or flop) in void context at - line 41.Useless use of caller in void context at - line 42.Useless use of fileno in void context at - line 43.Useless use of eof in void context at - line 44.Useless use of tell in void context at - line 45.Useless use of readlink in void context at - line 46.Useless use of time in void context at - line 47.Useless use of localtime in void context at - line 48.Useless use of gmtime in void context at - line 49.Useless use of getgrnam in void context at - line 50.Useless use of getgrgid in void context at - line 51.Useless use of getpwnam in void context at - line 52.Useless use of getpwuid in void context at - line 53.Useless use of subroutine prototype in void context at - line 54.######### op.cuse warnings 'void' ; close STDIN ;my $x = sort (2,1,3);no warnings 'void' ;$x = sort (2,1,3);EXPECTUseless use of sort in scalar context at - line 3.######### op.cno warnings 'void' ; close STDIN ;1 x 3 ;			# OP_REPEAT			# OP_GVSVwantarray ; 		# OP_WANTARRAY			# OP_GV			# OP_PADSV			# OP_PADAV			# OP_PADHV			# OP_PADANY			# OP_AV2ARYLENref ;			# OP_REF\@a ;			# OP_REFGEN\$a ;			# OP_SREFGENdefined $a ;		# OP_DEFINEDhex $a ;		# OP_HEXoct $a ;		# OP_OCTlength $a ;		# OP_LENGTHsubstr $a,1 ;		# OP_SUBSTRvec $a,1,2 ;		# OP_VECindex $a,1,2 ;		# OP_INDEXrindex $a,1,2 ;		# OP_RINDEXsprintf $a ;		# OP_SPRINTF$a[0] ;			# OP_AELEM			# OP_AELEMFAST@a[0] ;			# OP_ASLICE#values %a ;		# OP_VALUES#keys %a ;		# OP_KEYS$a{0} ;			# OP_HELEM@a{0} ;			# OP_HSLICEunpack "a", "a" ;	# OP_UNPACKpack $a,"" ;		# OP_PACKjoin "" ;		# OP_JOIN(@a)[0,1] ;		# OP_LSLICE			# OP_ANONLIST			# OP_ANONHASHsort(1,2) ;		# OP_SORTreverse(1,2) ;		# OP_REVERSE			# OP_RANGE			# OP_FLIP(1 ..2) ;		# OP_FLOPcaller ;		# OP_CALLERfileno STDIN ;		# OP_FILENOeof STDIN ;		# OP_EOFtell STDIN ;		# OP_TELLreadlink 1;		# OP_READLINKtime ;			# OP_TIMElocaltime ;		# OP_LOCALTIMEgmtime ;		# OP_GMTIMEeval { getgrnam 1 };	# OP_GGRNAMeval { getgrgid 1 };	# OP_GGRGIDeval { getpwnam 1 };	# OP_GPWNAMeval { getpwuid 1 };	# OP_GPWUIDprototype "foo";	# OP_PROTOTYPEEXPECT######### op.cuse warnings 'void' ;for (@{[0]}) { "$_" }		# check warning isn't duplicatedno warnings 'void' ;for (@{[0]}) { "$_" }		# check warning isn't duplicatedEXPECTUseless use of string in void context at - line 3.######### op.cuse warnings 'void' ;use Config ;BEGIN {    if ( ! $Config{d_telldir}) {        print <<EOM ;SKIPPED# telldir not presentEOM        exit     }}telldir 1 ;		# OP_TELLDIRno warnings 'void' ;telldir 1 ;		# OP_TELLDIREXPECTUseless use of telldir in void context at - line 13.######### op.cuse warnings 'void' ;use Config ;BEGIN {    if ( ! $Config{d_getppid}) {        print <<EOM ;SKIPPED# getppid not presentEOM        exit     }}getppid ;		# OP_GETPPIDno warnings 'void' ;getppid ;		# OP_GETPPIDEXPECTUseless use of getppid in void context at - line 13.######### op.cuse warnings 'void' ;use Config ;BEGIN {    if ( ! $Config{d_getpgrp}) {        print <<EOM ;SKIPPED# getpgrp not presentEOM        exit     }}getpgrp ;		# OP_GETPGRPno warnings 'void' ;getpgrp ;		# OP_GETPGRPEXPECTUseless use of getpgrp in void context at - line 13.######### op.cuse warnings 'void' ;use Config ;BEGIN {    if ( ! $Config{d_times}) {        print <<EOM ;SKIPPED# times not presentEOM        exit     }}times ;			# OP_TMSno warnings 'void' ;times ;			# OP_TMSEXPECTUseless use of times in void context at - line 13.######### op.cuse warnings 'void' ;use Config ;BEGIN {    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_CONST5 || print "bad\n";	# test OPpCONST_SHORTCIRCUITuse constant U => undef;print "boo\n" if U;	# test OPpCONST_SHORTCIRCUIT$[ = 2; # should not warnno 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#

⌨️ 快捷键说明

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