Acme::Test::Weather

Description

Acme::Test::Weather is a Perl module to test the weather conditions for a user. SYNOPSIS use Test::Weather; plan tests => 2; # You may only install something # when its nice outside. &isnt_snowing(); &isnt_cloudy(); # output: 1..2 ok 1 - its partly cloudy in Montreal, Canada not ok 2 - its partly cloudy in Montreal, Canada # Failed test (./t/mtl.t at line 5) # Partly Cloudy # matches (?i-xsm:bcloudy) # Looks like you failed 1 tests of 2. The package determines a users location by looking up their hostname / IP address using the CAIDA::NetGeo::Client package. Based on the data returned, weather conditions are polled using the Weather::Underground package. Because, you know, it may be important to your Perl module that its raining outside... PACKAGE FUNCTIONS &is_cloudy() Make sure it is cloudy, but remember the silver lining. &isnt_cloudy() No clouds. Not even little fluffy ones. &is_raining() Make sure it is raining. &isnt_raining() Make sure sure it is not raining. &is_snowing() Make sure it is snowing. &isnt_snowing() Make sure it is not snowing. &is_sunny() Make sure it is sunny. &isnt_sunny() Make sure it is not sunny. Why are you so angry? &eq_celsius($int) Temperature in degrees Celsius. >_celsius($int) Cooler than, in degrees Celcius. <_celsius($int) Warmer than, in degrees Celsius. &eq_fahrenheit($int) Temperature, in degrees Fahrenheit. >_fahrenheit($int) Warmer than, in degrees Fahrenheit. <_fahrenheit($int) Cooler than, in degrees Fahrenheit. &eq_humidity($int) Humidity. >_humidity($int) Humidity is greater than. <_humidity($int) Humidity is less than..

Acmetestweather - Make Sure - Weather Conditions - Perl Module - Sure - Cloudy - Isnt - Perl - Module - Raining - Libraries - Programming

Published By:Aaron Straup Cope

License Type:Freeware

Date Added:22 October, 2010

Version:0.2

Price:Free

Downloads:50

Size:5.1 KB

Platform: Linux

What people say
- required fields
     
Related Downloads

The Wonder Shaper is a very special network shaper script with a lot of features. Works on Linux 2.4 & higher. Goals I attempted to create the holy grail: * Maintain low latency for interfactive traffic at all times.

DateSep 27, 2010

AuthorBert Hubert

Size0

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Internet

Alien Perl module package contains external libraries wrapped up for your viewing pleasure!

DateAug 30, 2010

AuthorArthur Bergman

Size10.2 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Programming

Chart::Graph is a Perl extension for a front-end to gnuplot, XRT, and Xmgrace.

DateSep 22, 2010

AuthorCAIDA Perl development team

Size245.8 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Programming

The PHP Firewall Generator is a simple PHP script that generates a firewall script for iptables or ipchains based firewalls. The script is created based on configuration rules entered by the user.

DateOct 11, 2010

AuthorDel

Size35.8 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Utilities

Alien::scriptaculous is a Perl module for installing and finding script.aculo.us. SYNOPSIS use Alien::scriptaculous; ... $version = Alien::scriptaculous->version(); $path = Alien::scriptaculous->path(); ...

DateSep 30, 2010

AuthorGraham TerMarsch

Size100.4 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Programming