| Tiempo :: Google Interfaz Perl a la API del tiempo de Google |
Descargar ahora |
Tiempo :: Google Clasificación y resumen
- Licencia:
- Perl Artistic License
- Nombre del editor:
- Daniel LeWarne
- Sitio web del editor:
- http://search.cpan.org/~possum/
Tiempo :: Google Etiquetas
Tiempo :: Google Descripción
Interfaz Perl a la API Tiempo de Google Tiempo :: Google es una interfaz Perl para el clima de Google Api.Synopsis usa el clima :: Google; # Si planea usar ubicaciones con caracteres no ASCII, use la codificación 'UTF8'; My $ GW; ## Inicializar el módulo $ GW = Nuevo tiempo:: Google (90210); # Código postal $ GW = Nuevo tiempo :: Google ('Beverly Hills, CA'); # Nombre de la ciudad # o $ GW = Nuevo tiempo:: Google; $ gw-> zip (90210); # Código postal $ gw-> ciudad ('Beverly Hills, CA'); # Nombre de la ciudad ## Obtenga información actualizada mi @Info; @Info = $ gw-> actual ('temp_f', 'temp_c', 'humedad', 'wind_condition'); # O My $ actual = $ gw-> corriente; @info = ($ actual -> {temp_f}, $ actual -> {temp_c}, $ actual -> {humedad}); # O @info = ($ gw-> temp_f, $ gw-> temp_c, $ gw-> humedad, $ gw-> wind_condition); ## Pronóstico Imprimir "Hoy en día:", $ GW-> PRONÓSTICO (0, 'High'); Imprima "Hoy en día:", $ GW-> Pronóstico ('Hoy', 'alto'); Imprima "Hoy en día:", $ gw-> hoy ('alto'); # Suponiendo que hoy es el lunes: imprimir "Mañana es alto:", $ gw-> Pronóstico (1, 'alto'); Imprima "Morrow's High:", $ GW-> Pronóstico ('martes', 'alto'); Imprimir "Mañana es alto:", $ GW-> TUE ('High'); ## Información del pronóstico: Imprimir "Pronóstico para". $ gw-> info ('ciudad'). "hecho en ". $ gw-> info ('current_date_time'); Requisitos: · Perl
Tiempo :: Google Software relacionado