in reply to Re: Re: Syntax error with if following eval
in thread Syntax error with if following eval
If you think about a string eval, the problem would have been clearer, I think:
eval '1' if (1) {}
but if you would write the block eval as:
eval { 1 } if (1) { }
then it becomes very confusing and unclear why that would be a problem. I guess it's just one of the Perl's syntaxical quirks that you need to get used to.
Liz
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Syntax error with if following eval
by simonm (Vicar) on Sep 09, 2003 at 03:31 UTC | |
|
Re: Re: Re: Re: Syntax error with if following eval
by benizi (Hermit) on Sep 09, 2003 at 19:21 UTC | |
|
Re: Re: Re: Re: Syntax error with if following eval
by Anonymous Monk on Sep 09, 2003 at 00:04 UTC |