develooper Front page | perl.golf | Postings from July 2002

Re: My solution annotated

Thread Previous | Thread Next
From:
Julien Quint
Date:
July 8, 2002 09:46
Subject:
Re: My solution annotated
Message ID:
20020708164514.GA7305@houdini.imag.fr
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:

	exec$_

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.

pom

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About