Egg::Plugin::Tools - Various function collections.
use Egg qw/ Tools /; $e->escape_html($html); $e->unescape_html($plain); $e->md5_hex('abcdefg'); $e->comma('12345.123'); my @array= (1..100); $e->shuffle_array(\@array);
This plugin offers the method of various functions.
The result of HTML::Entities::encode_entities is returned.
Alias: escape_html, eHTML
The result of HTML::Entities::encode_entities_numeric is returned.
The result of HTML::Entities::decode_entities is returned.
Alias: unescape_html, ueHTML
The result of URI::Escape::uri_escape is returned.
Alias: escape_uri, eURI
The result of URI::Escape::uri_escape_utf8 is returned.
The result of URI::Escape::uri_unescape is returned.
Alias: unescape_uri, ueURI
PACKAGE_NAME is read, and METHOD_NAME is called.
Please give PACKAGE_NAME the module name since the project name.
$e and ARGS are passed to METHOD_NAME.
# MyApp::AnyPkg->call_method($e, ... args ); is done. my $result= $e->call( AnyPkg => 'call_method', .... args );
The result of Digest::MD5::md5_hex is returned.
Is put in given NUMBER in each treble and it returns it.
$e->comma('123456') => 123,456 $e->comma('-654321.123') => -654,321.123 $e->comma('+123456789.0') => +1,234,567.0
It returns it mixing given ARRAY at random.
my @array= (1..10); $e->shuffle_array(\@array);
* Quotation from perlfaq.
File::Find is done and the result is returned by the ARRAY reference.
my $files= $e->filefind(qr{\.pm$}, qw( /usr/lib/perl5/... )) || return 0;
HTML::Entities, URI::Escape, Digest::MD5, Egg::Release,
Masatoshi Mizuno <lushe@cpan.org>
Copyright (C) 2007 by Bee Flag, Corp. <http://egg.bomcity.com/>, All Rights Reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.
To install Egg::Release, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Egg::Release
CPAN shell
perl -MCPAN -e shell install Egg::Release
For more information on module installation, please visit the detailed CPAN module installation guide.