Metainformationen zur Seite

LoxBerry::System::lbcountry

$country = lbcountry();

Returns the current user country of LoxBerry (e.g. "at")

LoxBerry Compatibility

This function is available from LoxBerry V2.2. If you use that function, set this minimum version in your plugin.cfg.

This is the country the user has set in the My LoxBerry widget.

Return value

The country is returned in two letters lowercase, as defined in ISO 3166-1 alpha-2.

The function returns undef, if no country was selected by the user.

Usage

use LoxBerry::System;
 
my $country = lbcountry();
print STDERR "Current user country is $country.";