Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

RE: Post Election Day Perl

by Fastolfe (Vicar)
on Nov 09, 2000 at 19:21 UTC ( #40725=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://40725]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2020-01-28 06:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?