Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

netsds::util::convert(3pm) [debian man page]

NetSDS::Util::Convert(3pm)				User Contributed Perl Documentation				NetSDS::Util::Convert(3pm)

NAME
NetSDS::Util::Convert - data formats conversion functions SYNOPSIS
use NetSDS::Util::Convert qw(...); DESCRIPTION
"NetSDS::Util::Convert" module contains miscelaneous functions. o CLI parameters processing o types validation o HEX, Base64, URI, BCD encondig o UUID processing EXPORTED FUNCTIONS
conv_conv_str_bcd($str) - convert string to little-endian BCD This function converts string to little-endian BCD encoding filled with F16 value. conv_chr_hex($char) - encode char to hexadecimal string $hex = conv_chr_hex('a'); # return 61 conv_hex_chr($hex) - convert hexadecimal string to character $chr = conv_hex_chr('4A'); # return 'J' conv_str_hex($str) - convert byte string to hexadecimal $str = 'Want hex dump!'; $hex = conv_hex_str($str); print "Hex string: " . $hex; conv_hex_str($string) - convert hex to byte string $hex = '7A686F7061'; $string = conv_hex_str($hex); print "String from hex: " . $string; conv_str_base64($str) - convert string to Base64 my $b64 = str_base64("Hallo, people!"); conv_base64_str($b64) - convert Base64 to string my $str = base64_str($base64_string); conv_str_uri($str) - convert string to URI encoded Example: my $uri = str_uri("http://www.google.com/?q=what"); conv_uri_str($uri) - decode URI encoded string Example: my $str = uri_str($uri_string); EXAMPLES
None BUGS
None TODO
1. Add other encodings support SEE ALSO
Pod::Usage, Data::UUID AUTHORS
Valentyn Solomko <pere@pere.org.ua> Michael Bochkaryov <misha@rattler.kiev.ua> perl v5.12.4 2011-08-27 NetSDS::Util::Convert(3pm)

Check Out this Related Man Page

NetSDS::Util(3pm)					User Contributed Perl Documentation					 NetSDS::Util(3pm)

NAME
NetSDS::Util - supplementary NetSDS packages SYNOPSIS
use NetSDS::Util::Convert; use NetSDS::Util::String; my $trim_str = str_trim(" Some string with leading and trailing "); DESCRIPTION
"NetSDS::Util" modules contains functions useful for everyday tasks. NetSDS::Util::Convert - data format conversions NetSDS::Util::DateTime - processing date and time NetSDS::Util::File - work with files and catalogs NetSDS::Util::Spreadsheet - processing spreadsheet files NetSDS::Util::Misc - miscelaneous routines NetSDS::Util::String - text and binary strings processing NetSDS::Util::Struct - data structures conversion NetSDS::Util::Translit - transliteration NetSDS::Util::Types - work with data types BUGS
Unknown yet SEE ALSO
NetSDS::Util::Convert NetSDS::Util::DateTime NetSDS::Util::File NetSDS::Util::Spreadsheet NetSDS::Util::Misc NetSDS::Util::String NetSDS::Util::Struct, NetSDS::Util::Translit NetSDS::Util::Types TODO
Implement functional tests. AUTHOR
Valentyn Solomko <pere@pere.org.ua> Michael Bochkaryov <misha@rattler.kiev.ua> Yana Kornienko <yana@netstyle.com.ua> LICENSE
Copyright (C) 2008-2009 Michael Bochkaryov This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA perl v5.12.4 2011-08-27 NetSDS::Util(3pm)
Man Page