|
|
|
|
|
by tyingq
1582 days ago
|
|
>incorrect code raises syntax error only when it is reached by execution. That's not generally true for Perl. The BEGIN block is used to get in that state here. "Some incorrect code raises syntax error only when it is reached" is true. It's generating this on Fridays: &f() / 1;
And this on other days: f(/1;#/+);
If you run the same code, but without BEGIN blocking the assignment to *f, it isn't incorrect code. It evaluates as: 'f' / 1;
|
|
Does the parse that happens on Thursday take precedence or is it reparsed every single time through the loop?