#!/usr/bin/perl use CGI qw/:standard/; use LWP::Simple qw(!head); use Data::Dumper; my $page = get("http://www.thedailyshow.com/tds_files/includes/search/search_results.jhtml"); my @a = split(/\n/, $page); my %vids; my($id, $date); while (scalar(@a)) { $_ = shift @a; if (/video_image/) { $_ = shift @a; if (/\/video\/index.jhtml\?videoId=([0-9]+)/) { $id = $1; } } if (/onClick=\"cc\.proc/) { if (/>(.*)$x # "; #}