Macros - Provides useful macros for conversions
use App::PerlShell::Plugin::Macros;
This module provides useful macros for conversions.
Provides help.
[$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.
[$hex =] D2H "decimalNumber"
Creates $hex variable as hex representation of decimalNumber. Without optional return variable simply prints output.
[$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.
[$dec =] H2D "hexNumber"
Creates $dec variable as decimal representation of hexNumber. Without optional return variable simply prints output.
[$pack_string =] H2S "hex_string"
Creates $pack_string variable from hex_string. Without optional return variable simply prints output.
[$hex =] S2H "pack_string"
Creates $hex variable as hex representation of pack_string. Without optional return variable simply prints output.
This software is released under the same terms as Perl itself. If you don't know what that means visit http://perl.com/.
Copyright (c) 2013, 2018 Michael Vincent
http://www.VinsWorld.com
All rights reserved
To install App::PerlShell, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::PerlShell
CPAN shell
perl -MCPAN -e shell install App::PerlShell
For more information on module installation, please visit the detailed CPAN module installation guide.