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

📄 5nolint

📁 source of perl for linux application,
💻
字号:
syntax anti-lint__END__-X# nolint: check compile time $^W is zappedBEGIN { $^W = 1 ;}$a = $b = 1 ;$a =+ 1 ;close STDIN ; print STDIN "abc" ;EXPECT########-X# nolint: check runtime $^W is zapped$^W = 1 ;close STDIN ; print STDIN "abc" ;EXPECT########-X# nolint: check runtime $^W is zapped{  $^W = 1 ;  close STDIN ; print STDIN "abc" ;}EXPECT########-X# nolint: check "no warnings" is zappeduse warnings ;$a = $b = 1 ;$a =+ 1 ;close STDIN ; print STDIN "abc" ;EXPECT########-X# nolint: check "no warnings" is zapped{  use warnings ;  close STDIN ; print STDIN "abc" ;}EXPECT########-Xw# nolint: check combination of -w and -X{  $^W = 1 ;  close STDIN ; print STDIN "abc" ;}EXPECT########-X--FILE-- abc.pmuse warnings 'syntax' ;my $a = 0;$a =+ 1 ;1;--FILE-- use warnings 'uninitialized' ;use abc;my $a ; chop $a ;EXPECT########-X--FILE-- abcuse warnings 'syntax' ;my $a = 0;$a =+ 1 ;1;--FILE-- use warnings 'uninitialized' ;require "./abc";my $a ; chop $a ;EXPECT########-X--FILE-- abc.pmBEGIN {$^W = 1}my ($a, $b) = (0,0);$a =+ 1 ;1;--FILE-- $^W = 1 ;use abc;my $a ; chop $a ;EXPECT########-X--FILE-- abcBEGIN {$^W = 1}my ($a, $b) = (0,0);$a =+ 1 ;1;--FILE-- $^W = 1 ;require "./abc";my $a ; chop $a ;EXPECT########-X# Check scope of pragma with evaluse warnings;{    no warnings ;    eval '        my $b ; chop $b ;    '; print STDERR $@ ;    my $b ; chop $b ;}EXPECT########-X# Check scope of pragma with evaluse warnings;{    no warnings ;    eval q[         use warnings 'uninitialized' ;        my $b ; chop $b ;    ]; print STDERR $@;    my $b ; chop $b ;}EXPECT########-X# Check scope of pragma with evalno warnings;{    use warnings 'uninitialized' ;    eval '        my $b ; chop $b ;    '; print STDERR $@ ;    my $b ; chop $b ;}EXPECT########-X# Check scope of pragma with evalno warnings;{    use warnings 'uninitialized' ;    eval '        no warnings ;        my $b ; chop $b ;    '; print STDERR $@ ;    my $b ; chop $b ;}EXPECT########-X# Check scope of pragma with evaluse warnings;{    no warnings ;    eval '        my $a =+ 1 ;    '; print STDERR $@ ;    my $a =+ 1 ;}EXPECT########-X# Check scope of pragma with evaluse warnings;{    no warnings ;    eval q[         use warnings 'syntax' ;        my $a =+ 1 ;    ]; print STDERR $@;    my $a =+ 1 ;}EXPECT########-X# Check scope of pragma with evalno warnings;{    use warnings 'syntax' ;    eval '        my $a =+ 1 ;    '; print STDERR $@;    my $a =+ 1 ;}EXPECT########-X# Check scope of pragma with evalno warnings;{    use warnings 'syntax' ;    eval '        no warnings ;        my $a =+ 1 ;    '; print STDERR $@;    my $a =+ 1 ;}EXPECT

⌨️ 快捷键说明

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