Next: Text::Wigwam::Library::Comparators | Previous: Text::Wigwam::Library::Assignment | [Table of Contents] | [Text::Wigwam Index] |
Text::Wigwam::Library::Character #asc, #chr, #ord
This library provides several directives which are useful for manipulating character data.
The directives within this library can be imported into specific branches of
the directive tree (which transcends from Text::Wigwam::Directives
) via
plug-ins or modules using one of the following techniques.
package Text::Wigwam::Directives::some::arbitrary::branch; # import everything use Text::Wigwam::Library::Character qw/:all/; package Text::Wigwam::Directives::another::arbitrary::branch; # import selectively use Text::Wigwam::Library::Character( qw/ :asc :chr :ord / );
Returns the unsigned ASCII value of chr.
[!! #ord "a" /* output: 97 */ !!]
Returns the ASCII character represented by num.
[!! #chr 98 /* output: b */ !!]
Same as #asc
.
[!! #ord "b" /* output: 98 */ !!]