develooper Front page | | Postings from July 2002

Re: My solution annotated

Thread Previous | Thread Next
Julien Quint
July 8, 2002 09:46
Re: My solution annotated
Message ID:
On Mon, Jul 08, 2002 at 06:36:07PM +0200, Eugene van der Pijll wrote:
> This course was very interesting (though I didn't like it at first,
> stuck at about 180), because of the many different algorithms used, but
> also the number of different ways of die'ing. Here are some of the error
> messages my solutions returned when fed a cyclic graph:
> Undefined subroutine &main::x called
> Illegal division by zero
> Can't take log of 0
> Killed
> And my favorite:
> Not a subroutine reference
> Were there more possibilities?

I tried dying with:


which amazingly passes all the tests and dies with various shell error messages
although one could write tests that invalidate this approach. Anyway, it was
one character too long.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About