Help language development. Donate to The Perl Foundation
P5hex - Implement Perl 5's hex() / ord() built-ins
use P5hex; # exports hex() and ord() print hex '0xAf'; # prints '175' print hex 'aF'; # same $val = oct($val) if $val =~ /^0/;
This module tries to mimic the behaviour of the
oct built-ins of Perl 5 as closely as possible.
Elizabeth Mattijsen email@example.com
Source can be located at: https://github.com/lizmat/P5hex . Comments and Pull Requests are welcome.
Copyright 2018 Elizabeth Mattijsen
Re-imagined from Perl 5 as part of the CPAN Butterfly Plan.
This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.