sub aande { my $rl = shift; my $url = 'http://aande.com/perl/tv/tvlistings.pl?channel=aetv&get=today&tz=pst '; my $output = get $url; my @lines = split /\n/, $output; my $program = ""; my $description = ""; my $when = ""; foreach my $x (@lines) { chomp $x; next unless $x; if ($x =~ /([^<]+)(.*)$/) { my $moo = $2; $moo =~ s/<[^>]*>//g; if ($moo =~ / - /) { $when = $moo; $when =~ s/ / /g; } else { $description = $moo; } push @$rl, "$when $program $description\n" if $yay; $yay = 0; } } }