misterperl has asked for the wisdom of the Perl Monks concerning the following question:
Maybe I'm missing something but why does
Everywhere else in Perl like map, if, else, while, given, etc etc, I guess either the last ; is implied (as it is on the last line BEFORE the "}" , or maybe something is different about eval? I use it so infrequently, I inadvertently forget it..eval { lines ending in ; }; ^ | require that?
TY , Blessed Be!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: why does Perl eval have a strange terminator?
by LanX (Saint) on Jun 14, 2022 at 15:30 UTC | |
|
Re: why does Perl eval have a strange terminator?
by stevieb (Canon) on Jun 14, 2022 at 15:30 UTC | |
|
Re: why does Perl eval have a strange terminator?
by ikegami (Patriarch) on Jun 14, 2022 at 16:32 UTC | |
by misterperl (Friar) on Jun 14, 2022 at 20:04 UTC | |
by haukex (Archbishop) on Jun 14, 2022 at 20:26 UTC | |
by ikegami (Patriarch) on Jun 14, 2022 at 20:55 UTC | |
by perlfan (Parson) on Jun 24, 2022 at 20:11 UTC | |
by LanX (Saint) on Jun 14, 2022 at 21:56 UTC | |
by ikegami (Patriarch) on Jun 27, 2022 at 13:29 UTC |