Help language development. Donate to The Perl Foundation

P5chr cpan:ELIZABETH last updated on 2018-04-12

P5chr-0.0.4/

Build Status

NAME

P5chr - Implement Perl 5's chr() / ord() built-ins

SYNOPSIS

use P5chr; # exports chr() and ord()

my $a = 65;
say chr $a;

$_ = 65;
say chr();   # bare chr may be compilation error to prevent P5isms in Perl 6

my $a = "A";
say ord $a;

$_ = "A";
say ord();   # bare ord may be compilation error to prevent P5isms in Perl 6

DESCRIPTION

This module tries to mimic the behaviour of the chr and ord built-ins of Perl 5 as closely as possible.

AUTHOR

Elizabeth Mattijsen liz@wenzperl.nl

Source can be located at: https://github.com/lizmat/P5chr . Comments and Pull Requests are welcome.

COPYRIGHT AND LICENSE

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.