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

📄 say

📁 source of perl for linux application,
💻
字号:
Check the lexical scoping of the say keyword.(The actual behaviour is tested in t/op/say.t)__END__# No say; should be a syntax error.use warnings;say "Hello", "world";EXPECTUnquoted string "say" may clash with future reserved word at - line 3.String found where operator expected at - line 3, near "say "Hello""	(Do you need to predeclare say?)syntax error at - line 3, near "say "Hello""Execution of - aborted due to compilation errors.######### With say, should workuse warnings;use feature "say";say "Hello", "world";EXPECTHelloworld######### With say, should work in eval toouse warnings;use feature "say";eval q(say "Hello", "world");EXPECTHelloworld######### feature out of scope; should be a syntax error.use warnings;{ use feature 'say'; }say "Hello", "world";EXPECTUnquoted string "say" may clash with future reserved word at - line 4.String found where operator expected at - line 4, near "say "Hello""	(Do you need to predeclare say?)syntax error at - line 4, near "say "Hello""Execution of - aborted due to compilation errors.######### 'no feature' should workuse warnings;use feature 'say';say "Hello", "world";no feature;say "Hello", "world";EXPECTUnquoted string "say" may clash with future reserved word at - line 6.String found where operator expected at - line 6, near "say "Hello""	(Do you need to predeclare say?)syntax error at - line 6, near "say "Hello""Execution of - aborted due to compilation errors.######### 'no feature "say"' should work toouse warnings;use feature 'say';say "Hello", "world";no feature 'say';say "Hello", "world";EXPECTUnquoted string "say" may clash with future reserved word at - line 6.String found where operator expected at - line 6, near "say "Hello""	(Do you need to predeclare say?)syntax error at - line 6, near "say "Hello""Execution of - aborted due to compilation errors.

⌨️ 快捷键说明

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