#!/usr/bin/perl
%hash = qw(site.com 10 jamie@site.com:site1.com 4 user@hots:foo.bar 20);
eval print_url_info(\%hash,10,"STDOUT");
write;
exit 0;
sub print_url_info
{
my ($url_data,
$num_urls,
$fh)=@_;
my ($format)="",
($header)="$num_urls Most Popular URLs :",
($local_debug)=$debug,
($index)=0;
##############
# Geneate a string to be eval'd containing the most popular x urls for this user
$format = "format $fh =\n";
$format = $format . "\n";
$format = $format . "$header
\n";
$format = $format . "
| URL | \n"; $format = $format . "\n"; $format = $format . " | Num of Hits | \n
|---|---|---|
| $_ | \n"; $format = $format . "${$url_data}{$_} | \n