in reply to why does Perl eval have a strange terminator?
you must distinguish between
(Contrived) Examples:
map and eval fall into the function category.
you can see multiple nested terms and functions in the statement
for (EXPR) {BLOCK} is a compound statement and eval is single EXPR without(!) semicolon
NB: If you wanted to use a compound statement inside an expression, you would need to put it inside do {BLOCK}
HTH! :)
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
|---|