以下两个程序给出了不同的结果。我认为这两个程序应该给出与20..20相同的结果,因为宏定义在fun()中,所以它不应该影响fun()之外的内容。你能解释一下原因吗?结果是20.20# define i 20main() printf("%d..", i); printf("%d", i);{
#undef i
$c->my_redirect_and_detach($someuri); 我得到了以下(缩写/混淆)错误: Parameter #2 (undef) to Catalyst::Plugin::RedirectAndDetach::redirect_and_detach was an 'undef', which is not one of the allowed types: scalar
at /usr/local/shareCatalyst::Plugin::RedirectAndDe