- 論壇徽章:
- 46
|
The default output of self-referential structures can be evaled, but the nested references to $VARn will be undefined, since a recursive structure cannot be constructed using one Perl statement. You should set the Purity flag to 1 to get additional statements that will correctly fill in these references. Moreover, if evaled when strictures are in effect, you need to ensure that any variables it accesses are previously declared.
如果不是很理解還可以自己實驗下嘛,其實根本原因是自引用的數(shù)據(jù)結(jié)構(gòu)沒法在一個語句內(nèi)實現(xiàn) |
|