sendhoo.pl untested

filter: Statementstmt 0.0% 0 / 11 Branchbran n/a Conditioncond 0.0% 0 / 15 MC/DCmcdc 0.0% 0 / 10 Subroutinesub 0.0% 0 / 2 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 39 CC 1 SCAR 6.9
CC
1
Cov
0%
usage
2.0
BEGIN
2.0
CRAP 2.0
1 #!/usr/bin/perl -w
2  
3 # Simon Drabble 03/22/02
4 # sdrabble@cpan.org
5 # $Id: sendhoo.pl,v 1.6 2003/10/09 21:46:14 simon Exp $
6 #
7  
8  
9 use strict;
10  
11 my $name = $ARGV[0] or &usage, die;
12 my $pass = $ARGV[1] or &usage, die;
13 my $to = $ARGV[2] or &usage, die;
14 my $subj = $ARGV[3] or &usage, die;
15 my $body = $ARGV[4] or &usage, die;
16  
17 exec("yahootils.pl --user=$name --pass=$pass --send --to=$to --subject=$subj --message=$body");
18  
19  
20 sub usage
21 {
22 warn "This script has been superceded by yahootils.pl";
23 print qq{
24 $0 <yahoo username> <yahoo password> <to-list> <subject> <body>
25 to-list is a comma-separated lists of addresses.
26 };
27 }