-
-
27 Jan 2003 19:03:08 UTC
- Distribution: Ananke-Utils
- Module version: 1.0.2
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues
- Testers (396 / 0 / 1)
- Kwalitee
Bus factor: 0- License: unknown
- Activity
24 month- Tools
- Download (9.61KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- unknown
- Reverse dependencies
- CPAN Testers List
- Dependency graph
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
Module Install Instructions
To install Ananke::Utils, copy and paste the appropriate command in to your terminal.
cpanm Ananke::Utils
perl -MCPAN -e shell install Ananke::Utils
For more information on module installation, please visit the detailed CPAN module installation guide.