NAME

Macros - Provides useful macros for conversions

SYNOPSIS

use App::PerlShell::Plugin::Macros;

DESCRIPTION

This module provides useful macros for conversions.

COMMANDS

Macros - provide help

Provides help.

MACROS

D2B - convert decimal number to binary

[$binary =] D2B "decimalNumber" [, padding]

Creates $binary variable as binary representation of decimalNumber. Without optional return variable simply prints output. Optional padding is total number of bits for return number.

D2H - convert decimal number to hex

[$hex =] D2H "decimalNumber"

Creates $hex variable as hex representation of decimalNumber. Without optional return variable simply prints output.

H2B - convert hex number to binary

[$binary =] H2B "hexNumber" [, padding]

Creates $binary variable as binary representation of hexNumber. Without optional return variable simply prints output. Optional padding is total number of bits for return number.

H2D - convert hex number to decimal

[$dec =] H2D "hexNumber"

Creates $dec variable as decimal representation of hexNumber. Without optional return variable simply prints output.

H2S - convert hex to string

[$pack_string =] H2S "hex_string"

Creates $pack_string variable from hex_string. Without optional return variable simply prints output.

S2H - convert string to hex

[$hex =] S2H "pack_string"

Creates $hex variable as hex representation of pack_string. Without optional return variable simply prints output.

LICENSE

This software is released under the same terms as Perl itself. If you don't know what that means visit http://perl.com/.

AUTHOR

Copyright (c) 2013, 2018 Michael Vincent

http://www.VinsWorld.com

All rights reserved