Re: Puzzle: Warnings Golf
Jasvir Nagra <[email protected]> Thu, 02 Sep 2004 13:13:08 +1200
| Newsgroups | gmane.comp.lang.perl.golf |
|---|---|
| Message-ID | <1094087588.2309.23.camel@monk> |
Actually that produces the same error message repeatedly. I think the original definition takes that into account. A variation which generates many different error messages eventually (equally adhering to the letter if not the spirit): s p o i l e r perl -we '$a="a"; eval $a++ while 1' On Thu, 2004-09-02 at 11:47, Jed Davis wrote: > "McGlinchy, Alistair" <[email protected]> writes: > > > Puzzle: Write a one-liner longer than (say) 3 bytes that can improve > > on 0.77 distinct warnings per byte of code. The program should be -c > > valid, output nothing without -w and sound the alarm as much as > > possible with -w. > > It follows the letter of the puzzle, but perhaps not the spirit: > > perl -we 'eval"x"while 1' -- Jasvir Nagra http://www.cs.auckland.ac.nz/~jas
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQBBNnOkv/AoArEwaEgRAgUhAKDm+ghKHj05ao+9I39Hoq10lr+wSgCgtH49 oPF6ASTPDWgXjyIU+CMIERs= =+h7G -----END PGP SIGNATURE-----