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

📄 6default

📁 Altera recommends the following system configuration: * Pentium II 400 with 512-MB system memory (fa
💻
字号:
Check default warnings__END__# default warnings should be displayed if you don't add anything# optional shouldn'tmy $a = oct "7777777777777777777777777777777777779" ;EXPECTInteger overflow in octal number at - line 3.######### no warnings should be displayed no warnings ;my $a = oct "7777777777777777777777777777777777778" ;EXPECT######### all warnings should be displayed use warnings ;my $a = oct "7777777777777777777777777777777777778" ;EXPECTInteger overflow in octal number at - line 3.Illegal octal digit '8' ignored at - line 3.Octal number > 037777777777 non-portable at - line 3.######### check scopeuse warnings ;my $a = oct "7777777777777777777777777777777777778" ;{    no warnings ;    my $a = oct "7777777777777777777777777777777777778" ;}    my $c = oct "7777777777777777777777777777777777778" ;EXPECTInteger overflow in octal number at - line 3.Illegal octal digit '8' ignored at - line 3.Octal number > 037777777777 non-portable at - line 3.Integer overflow in octal number at - line 8.Illegal octal digit '8' ignored at - line 8.Octal number > 037777777777 non-portable at - line 8.######### all warnings should be displayed use warnings ;my $a = oct "0xfffffffffffffffffg" ;EXPECTInteger overflow in hexadecimal number at - line 3.Illegal hexadecimal digit 'g' ignored at - line 3.Hexadecimal number > 0xffffffff non-portable at - line 3.######### all warnings should be displayed use warnings ;my $a = oct "0b111111111111111111111111111111111111111111111111111111111111111112";EXPECTInteger overflow in binary number at - line 3.Illegal binary digit '2' ignored at - line 3.Binary number > 0b11111111111111111111111111111111 non-portable at - line 3.######### Check scope of pragma with evaluse warnings;{    no warnings ;    eval '	my $a = oct "0xfffffffffffffffffg" ;    '; print STDERR $@ ;    my $a = oct "0xfffffffffffffffffg" ;}EXPECT######### Check scope of pragma with evaluse warnings;{    no warnings ;    eval q[         use warnings ;	my $a = oct "0xfffffffffffffffffg" ;    ]; print STDERR $@;    my $a = oct "0xfffffffffffffffffg" ;}EXPECTInteger overflow in hexadecimal number at (eval 1) line 3.Illegal hexadecimal digit 'g' ignored at (eval 1) line 3.Hexadecimal number > 0xffffffff non-portable at (eval 1) line 3.######### Check scope of pragma with evalno warnings;{    use warnings ;    eval '	my $a = oct "0xfffffffffffffffffg" ;    '; print STDERR $@ ;}EXPECTInteger overflow in hexadecimal number at (eval 1) line 2.Illegal hexadecimal digit 'g' ignored at (eval 1) line 2.Hexadecimal number > 0xffffffff non-portable at (eval 1) line 2.######### Check scope of pragma with evalno warnings;{    use warnings;    eval '        no warnings ;	my $a = oct "0xfffffffffffffffffg" ;    '; print STDERR $@ ;}EXPECT######### Check scope of pragma with evalno warnings;{    use warnings 'deprecated' ;    eval '	my $a = oct "0xfffffffffffffffffg" ;    '; print STDERR $@;}EXPECT

⌨️ 快捷键说明

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