Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

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?

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2021-10-24 00:51 GMT
Find Nodes?
    Voting Booth?
    My first memorable Perl project was:

    Results (88 votes). Check out past polls.