Next:
Text::Wigwam::Library::Comparators
Previous:
Text::Wigwam::Library::Assignment
 [Table of Contents][Text::Wigwam Index]

Text::Wigwam::Library::Character



NAME

Text::Wigwam::Library::Character #asc, #chr, #ord

Description

This library provides several directives which are useful for manipulating character data.

Usage

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 /
 );

Directives

#asc chr

Returns the unsigned ASCII value of chr.

 [!! #ord "a" /* output: 97 */ !!]

#chr num

Returns the ASCII character represented by num.

 [!! #chr 98 /* output: b */ !!]

#ord chr

Same as #asc.

 [!! #ord "b" /* output: 98 */ !!]