http://www.perlmonks.org?node_id=40725


in reply to Post Election Day Perl

Since you seemed to imply modules were OK, here's my 2nd attempt:
#!/usr/bin/perl -w use strict; use CNN::GetFloridaVotesAndEmailChanges qw{doit}; doit;
Weighs in at about 87 bytes. Less if you reduce the length of the module's name and the function names, and if you drop the dependency on 'use strict'. Heck, if I do that:
perl -MCNN -e go
16 bytes!

Update: Since amelinda gets to use external programs in her version, I do too:

perl -e '`./a.out`'
Unfortunately, we're a few bytes longer than the previous example, but if you renamed our external program a.out to, say, a, we come in at 15 bytes (13 if you assume our external program is in your PATH, which means we can drop the ./).

Replies are listed 'Best First'.
RE: RE: Post Election Day Perl
by amelinda (Friar) on Nov 09, 2000 at 22:22 UTC
    Of course, if you re-read vroom's specs, he doesn't say that you can use any old modules... he does sort of limit it to LWP and MAIL. Pity, these are quite cute.