From 494b270dab48393569ba7dd41345ec74099b9c40 Mon Sep 17 00:00:00 2001 From: Graham Knop Date: Tue, 7 Sep 2010 13:39:13 -0500 Subject: [PATCH] note replacement functions for WebGUI::Utility in migration docs --- docs/migration.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/migration.txt b/docs/migration.txt index a084b5c08..d7b157797 100644 --- a/docs/migration.txt +++ b/docs/migration.txt @@ -37,6 +37,24 @@ WebGUI::Session::Env has been moved into WebGUI::Session::Request. A listing of $session->env->getIp => $session->request->address +WebGUI::Utility +=============== +This module has been removed. It had many functions that weren't used, and others have better replacements. + + formatBytes -> Number::Format::format_bytes + commify -> Number::Format::format_number + emailRegex -> Email::Valid->address() + isBetween -> <= / >= + makeArrayTabSafe -> Text::CSV_XS methods + scalarEquals -> eq + randint -> int( rand( $x ) ) + isInSubnet -> Net::CIDR::Lite->new(@filters)->find($ip) + round -> sprintf '%.0f', $x + isIn -> smart match + sortHash -> sort with map + +All other subs were unused and were just removed. + WebGUI::Cache =============