go ahead... be a heretic | |
PerlMonks |
Re: why does Perl eval have a strange terminator?by LanX (Saint) |
on Jun 14, 2022 at 15:30 UTC ( [id://11144729]=note: print w/replies, xml ) | Need Help?? |
That's how the parser is organized. you must distinguish between
(Contrived) Examples: map and eval fall into the function category.
NB: If you wanted to use a compound statement inside an expression, you would need to put it inside do {BLOCK} HTH! :)
Cheers Rolf
updates
In Section
Seekers of Perl Wisdom
|
|