ソース my $debug = 1; sub dbgPrint() {print @_ if ($debug);} &dbgPrint "test\n";
実行結果 String found where operator expected at test.pl line 3, near "&dbgPrint "test\n"" (Missing operator before "test\n"?) syntax error at test.pl line 3, near "&dbgPrint "test\n"" Execution of test.pl aborted due to compilation errors.