Редакция 3 | Весь файл | Не учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS
Редакция 3 | Редакция 4 | ||
---|---|---|---|
Строка 1... | Строка 1... | ||
1 | #!/usr/bin/perl -w
|
1 | #!/usr/bin/perl -w
|
2 | 2 | ||
3 | # $Id: fetch_temp.pl,v 1.1 2007/11/13 21:19:27 koos Exp $
|
- | |
4 | - | ||
5 | # Brief Description
|
3 | # Brief Description
|
6 | # =================
|
4 | # =================
|
7 | #
|
5 | #
|
8 | # fetch_temp.pl is a program that demonstrates how to get the current
|
6 | # fetch_temp.pl is a program that demonstrates how to get the current
|
9 | # temperature from a nearby (or not) airport using Geo::METAR and the
|
7 | # temperature from a nearby (or not) airport using Geo::ModMETAR and the
|
10 | # LWP modules.
|
8 | # LWP modules.
|
11 | #
|
9 | #
|
12 | # Given an airport site code on the command line, fetch_temp.pl
|
10 | # Given an airport site code on the command line, fetch_temp.pl
|
13 | # fetches the current temperature and displays it on the
|
11 | # fetches the current temperature and displays it on the
|
14 | # command-line. For fun, here are some example airports:
|
12 | # command-line. For fun, here are some example airports:
|