Package DE_EPAGES::Twenga::API::Tools
This package provides commong Twenga tooling.
@EXPORT_OK |
Functions
IsValidHex32
validates if string is hexadecimal and 32 characters long
Syntax |
$result = IsValidHex32($str); |
Example |
if( IsValidHex32($str) ) { } |
Input |
|
Return |
|
IsValidTwengaCountry
validates a country code2 as valid country for Twenga
Syntax |
$result = IsValidTwengaCountry($countryCode); |
Example |
if( IsValidTwengaCountry($countryCode) ) { } |
Input |
|
Return |
|
ValidTwengaCountries
returns an array with the valid countries (code2) for Twenga
Syntax |
$aCountryCodes = ValidTwengaCountries(); |
Example |
my $aCountryCodes = ValidTwengaCountries(); |
Return |
|