| String-IRC documentation | view source | Contained in the String-IRC distribution. |
String::IRC - add color codes for mIRC compatible client
use String::IRC;
my $si1 = String::IRC->new('hello');
$si1->red->underline;
my $si2 = String::IRC->new('world')->yellow('green')->bold;
my $msg = "$si1, $si2!";
String::IRC can be used to add color or decoration code to string.
$si = String::IRC->new('I love YAKINIKU.');
This method constructs a new "String::IRC" instance and returns it.
$si->COLOR([BG_COLOR]);
Add color code and return String::IRC object. BG_COLOR is optional. Available COLOR and BC_COLOR are as follows.
white black blue navy green red brown maroon purple orange olive yellow light_green lime teal light_cyan cyan aqua light_blue royal pink light_purple fuchsia grey light_grey silver
$si->bold;
Add bold code and return String::IRC object.
$si->underline;
Add underline code and return String::IRC object.
$si->inverse;
Add inverse code and return String::IRC object.
$si->stringify;
Return string which is added color or decoration code.
String::IRC calls this method implicitly by context. You may call it explicitly.
No bugs have been reported.
Please report any bugs or feature requests to
bug-string-irc@rt.cpan.org, or through the web interface at
http://rt.cpan.org.
HIROSE Masaaki <hirose31@gmail.com>
Copyright (c) 2007, HIROSE Masaaki <hirose31@gmail.com>. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
| String-IRC documentation | view source | Contained in the String-IRC distribution. |