|
|
|
|
| why the following HereDoc print don't work? |
 why the following HereDoc print don't work? - perlfans [ 2004-12-08 09:40 | 456 byte(s)]
 Re: why the following HereDoc print don't work? - youzhiqingnian [ 2004-12-08 12:27 | 23 byte(s)]
 Re: why the following HereDoc print don't work? - perlfans [ 2004-12-08 14:35 | 3 byte(s)]
 Re: why the following HereDoc print don't work? - wandys [ 2004-12-09 21:50 | 121 byte(s)]
 Re: why the following HereDoc print don't work? - youzhiqingnian [ 2004-12-08 22:14 | 32 byte(s)]
|
|
|
|
[Original]
[Print]
[Top]
|
In a generator of C code file script, I wrote:
<CODE>
...
print SOURCE <<EOF;
default:
return 0;
}
return ret;
}
EOF
...
</CODE>
Perl complained "Can't find string terminator "EOF" anywhere before EOF at XXX(line No.)".
What happened and why?
|
|
|
[Original]
[Print]
[Top]
|
|
[Original]
[Print]
[Top]
|
>>EOF前面有空格吗?不能有
>No.
结尾的那个EOF后面也不能有空格。
|
|
|
----
UN*X is user^H^H^H^Hfriend-friendly.
|
|
[Original]
[Print]
[Top]
|
|
|