Alvis::URLs - URL and hash standardisation utilities.


Alvis-Bags documentation  | view source Contained in the Alvis-Bags distribution.

Index


NAME

Top

Alvis::URLs - URL and hash standardisation utilities.

SYNOPSIS

Top

 $Alvis::URLs::keepfrag = 0; # set to keep fragment, default removes
 $cleanurl = &Alvis::URLs::CleanURL($url);
 $Alvis::URLs::nocase = 0;   # set to convert everything to lowercase
 $Alvis::URLs::noclean = 0;  # set to disable use of URI cleaning
 $standardurl = &Alvis::URLs::StandardURL($url);

DESCRIPTION

Top

Provides an MD5 hashing interface, as well as simple standards for URL cleaning based on the URI library.

METHODS

Top

easyhash32()

   $myhash = &easyhash32($text);

Return 32-bit unsigned part of the MD5 hash as an integer.

easyhash64char()

   $myhash = &easyhash32($text);

Return 64-bit unsigned part of an MD5 hash as a 16 character string in hexadecimal.

CleanURL()

 $cleanurl = &Alvis::URLs::CleanURL($url);

Use the URI library to cleanup the format of the URL.

StandardURL()

 $standardurl = &Alvis::URLs::StandardURL($url);

Standardise the format of the URL, including cleaning above if switches dictate.

SEE ALSO

Top

URI(3).

AUTHOR

Top

Wray Buntine, <wray.buntine@hiit.fi>

COPYRIGHT AND LICENSE

Top


Alvis-Bags documentation  | view source Contained in the Alvis-Bags distribution.