eval should throw an exception on compile error

2011-05-06 Thread Michael G Schwern
I was just playing around with eval, trying to figure out if you can define an operator overload at runtime (seems you can't, good) and noticed this in the spec... [1] "Returns whatever $code returns, or fails." How does one get the compile error from an eval? What's the equivalent to $@? I

Re: eval should throw an exception on compile error

2011-05-07 Thread Stefan O'Rear
On Sat, May 07, 2011 at 03:45:02PM +1000, Michael G Schwern wrote: > I was just playing around with eval, trying to figure out if you can define an > operator overload at runtime (seems you can't, good) and noticed this in the > spec... [1] > > "Returns whatever $code returns, or fails." > >

Re: eval should throw an exception on compile error

2011-05-07 Thread Moritz Lenz
On 05/07/2011 07:45 AM, Michael G Schwern wrote: > I was just playing around with eval, trying to figure out if you can define an > operator overload at runtime (seems you can't, good) and noticed this in the > spec... [1] > > "Returns whatever $code returns, or fails." > > How does one get t