IP::Country::Medium − cached lookup of country codes by IP address and domain name


  use IP::Country::Medium;


See documentation for IP::Country. In addition, IP::Country::Medium objects have a cache() method, which controls whether hostname−>cc lookups are cached (on by default).
$ic−>cache( BOOLEAN )

By default, the module caches results of country-code lookups. This feature can be switched off by setting cache to a false value (zero, empty string or undef), and can be switched on again by setting cache to a true value (anything which isn’t false).

  $ic−>cache(0); # clears and disables cache
  $ic−>cache(1); # enables the cache

The cache is formed at the class level, so any change in caching in one object will affect all objectcs of this class. Turning off the cache also clears the cache.

More Linux Commands

beforelight(1) - screen saver (Commands - Linux man page)...
The beforelight program is a sample implementation of a screen saver for X servers supporting the MIT-SCREEN-SAVER extension. AUTHORS Keith Packard, MIT X Conso

XSetWMColormapWindows(3) - set or read a window's WM_COLORMA
The XSetWMColormapWindows function replaces the WM_COLORMAP_WINDOWS property on the specified window with the list of windows specified by the colormap_windows

glRasterPos4dv(3gl) - specify the raster position for pixel
The GL maintains a 3D position in window coordinates. This position, called the raster position, is used to position pixel and bitmap write operations. It is ma

301 Moved Permanently - statproc

ppmntsc(1) - Make RGB colors legal for NTSC or PAL color sys
This program is part of Netpbm(1) This program makes colors legal in the NTSC (or PAL) color systems. Often, images generated on the computer are made for use i

is_scrollok(3ncurses) - curses window properties (Man Page)
This implementation provides functions which return properties set in the WINDOW structure, allowing it to be opaque if the symbol NCURSES_OPAQUE is defined: is

inchstr(3ncurses) - get a string of characters (and attribut
These routines return a NULL-terminated array of chtype quantities, starting at the current cursor position in the named window and ending at the right margin o

texi2pdf(1) - convert Texinfo documents to PDF (Man Page)...
texi2pdf.1 - Run each Texinfo or (La)TeX FILE through TeX in turn until all cross-references are resolved, building all indices. The directory containing each F

Tcl_FSCopyDirectory(3) - procedures to interact with any fil
There are several reasons for calling the Tcl_FS API functions (e.g. Tcl_FSAccess and Tcl_FSStat) rather than calling system level functions like access and sta

gnutls_anon_set_params_function(3) - API function (ManPage)
This function will set a callback in order for the server to get the Diffie-Hellman or RSA parameters for anonymous authentication. The callback should return G

pcre32_get_stringnumber(3) Perl-compatible regular expressio
This convenience function finds the number of a named substring capturing parenthesis in a compiled pattern. Its arguments are: code Compiled regular expression

XtSetSensitive(3) - set and check a widget's sensitivity sta
The XtSetSensitive function first calls XtSetValues on the current widget with an argument list specifying that the sensitive field should change to the new val

We can't live, work or learn in freedom unless the software we use is free.