The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Ananke::Utils - Utility functions

DESCRIPTION

Utility functions used to facility your life

SYNOPSIS

        See all functions

METHODS

getCookies()

        Retrieves any cookie information from the browser

        %cookies = Ananke::Utils::getCookies;

getTime(timestamp)

        Return time in hh:mm:ss

        $var = &Ananke::Utils::getTime(time());

replace_chars(string)

        Replace all bad chars to html format

        $var = &Ananke::Utils::escape("«¼TesTЪ");

getForm(x,x)

        If you use modperl, this functions is very good

        my $r = shift;
        my (%form,$i,$j);
        $i=$r->content; $j=$r->args;
        %form = &Ananke::Utils::getForm($i,$j);

        this function understand array input, id[1], id[2],id[3]...

salt()

        Return randomic string, used for generate password

escape(string)

        URL encode

        http://web/this has spaces' -> 'http://web/this%20has%20spaces'

        $var = &Ananke::Utils::escape($ENV{'REQUEST_URI'});

unescape(string)

        URL decode

        http://web/this%20has%20spaces -> http://web/this has spaces'

        $var = &Ananke::Utils::unescape("http://web/this%20has%20spaces");

clean(string)

        Convert enter to <br> and 2 enters to <p>

        $var = clean($textarea);

AUTHOR

        Udlei D. R. Nattis
        nattis@anankeit.com.br
        http://www.nobol.com.br
        http://www.anankeit.com.br

1 POD Error

The following errors were encountered while parsing the POD:

Around line 190:

Non-ASCII character seen before =encoding in '&Ananke::Utils::escape("«¼TesTЪ");'. Assuming CP1252