Go to the source code of this file.
Functions | |
| our ($opt_v, $opt_t, $opt_T, $opt_l, $opt_u, $opt_d) | |
| getopts ('Tvtlu:d:') | |
| if (defined $opt_v) | |
| if (!defined $loc||$loc eq"") | |
| getstore ($url, $path) or $path | |
| if (!$size) | |
| print updatetime::Last Updated on | UnixDate ("now","%b %d, %I:%M %p %Z")."\n" |
Variables | |
| use | strict |
| use | MapSearch |
| my | $name = 'Map-Download' |
| my | $version = 0.1 |
| my | $author = 'Lucien Dunning' |
| my | $email = 'ldunning@gmail.com' |
| my | $updateTimeout = 10*60 |
| my | $retrieveTimeout = 30 |
| my | types = ('smdesc', 'updatetime', 'map') |
| my | $dir = "./" |
| my | $loc = shift |
| my | $results = MapSearch::doSearch() |
| my | $url = $results->[0]->{url} |
| my | $desc = $results->[0]->{description} |
| my | $size = $results->[0]->{imgsize} |
| my | $file = $desc |
| print smdesc::$desc | n |
| our | ( | $ | opt_v, | |
| $ | opt_t, | |||
| $ | opt_T, | |||
| $ | opt_l, | |||
| $ | opt_u, | |||
| $ | opt_d | |||
| ) |
| getopts | ( | 'Tvtlu:d:' | ) |
| getstore | ( | $ | url, | |
| $ | path | |||
| ) |
| print updatetime::Last Updated on UnixDate | ( | "now" | , | |
| "%b % | d, | |||
| %I:%M%p%Z" | ||||
| ) |
| chomp $url = $results->[0]->{url} |
1.5.5