Mojo::Util man page on Fedora

Man page or keyword search:  
man Server   31170 pages
apropos Keyword Search (all sections)
Output format
Fedora logo
[printable version]

Mojo::Util(3)	      User Contributed Perl Documentation	 Mojo::Util(3)

NAME
       Mojo::Util - Portable Utility Functions

SYNOPSIS
	 use Mojo::Util qw/url_escape url_unescape/;

	 my $string = 'test=23';
	 url_escape $string;
	 url_unescape $string;

DESCRIPTION
       Mojo::Util provides portable utility functions for Mojo.	 Note that
       this module is EXPERIMENTAL and might change without warning!

FUNCTIONS
       Mojo::Util implements the following functions.

   "b64_decode"
	 b64_decode $string;

       Base64 decode in-place.

   "b64_encode"
	 b64_encode $string;

       Base64 encode in-place.

   "camelize"
	 camelize $string;

       Convert snake case string to camel case and replace "-" with "::" in-
       place.

	 foo_bar     -> FooBar
	 foo_bar-baz -> FooBar::Baz

   "decamelize"
	 decamelize $string;

       Convert camel case string to snake case and replace "::" with "-" in-
       place.

	 FooBar	     -> foo_bar
	 FooBar::Baz -> foo_bar-baz

   "decode"
	 decode 'UTF-8', $octets;

       Decode octets in-place.

   "encode"
	 encode 'UTF-8', $chars;

       Encode characters in-place.

   "get_line"
	 my $line = get_line $chunk;

       Extract a whole line from chunk or return undef.	 Lines are expected to
       end with "0x0d 0x0a" or 0x0a.

   "hmac_md5_sum"
	 my $checksum = hmac_md5_sum $string, $secret;

       Generate HMAC-MD5 checksum for string.

   "hmac_sha1_sum"
	 my $checksum = hmac_sha1_sum $string, $secret;

       Generate HMAC-SHA1 checksum for string.	Note that Perl 5.10 or
       Digest::SHA are required for "SHA1" support.

   "html_escape"
	 html_escape $string;

       HTML escape string in-place.

   "html_unescape"
	 html_unescape $string;

       HTML unescape string in-place.

   "md5_bytes"
	 my $checksum = md5_bytes $string;

       Generate binary MD5 checksum.

   "md5_sum"
	 my $checksum = md5_sum $string;

       Generate MD5 checksum.

   "punycode_decode"
	 punycode_decode $string;

       Punycode decode string in-place, as described in RFC 3492.

   "punycode_encode"
	 punycode_encode $string;

       Punycode encode string in-place, as described in RFC 3492.

   "quote"
	 quote $string;

       Quote string in-place.

   "qp_decode"
	 qp_decode $string;

       Quoted Printable decode in-place.

   "qp_encode"
	 qp_encode $string;

       Quoted Printable encode in-place.

   "secure_compare"
	 my $success = secure_compare $string1, $string2;

       Constant time comparison algorithm to prevent timing attacks.

   "sha1_bytes"
	 my $checksum = sha1_bytes $string;

       Generate binary SHA1 checksum.  Note that Perl 5.10 or Digest::SHA are
       required for "SHA1" support.

   "sha1_sum"
	 my $checksum = sha1_sum $string;

       Generate SHA1 checksum.	Note that Perl 5.10 or Digest::SHA are
       required for "SHA1" support.

   "trim"
	 trim $string;

       Trim whitespace characters from both ends of string in-place.

   "unquote"
	 unquote $string;

       Unquote string in-place.

   "url_escape"
	 url_escape $string;
	 url_escape $string, 'A-Za-z0-9\-\.\_\~';

       URL escape in-place.

   "url_unescape"
	 url_unescape $string;

       URL unescape in-place.

   "xml_escape"
	 xml_escape $string;

       XML escape string in-place, this is a much faster version of
       "html_escape" escaping only the characters "&", "<", ">", """ and "'".

SEE ALSO
       Mojolicious, Mojolicious::Guides, <http://mojolicio.us>.

perl v5.14.1			  2011-09-11			 Mojo::Util(3)
[top]

List of man pages available for Fedora

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net