- or download this
my @colors = qw(red green yellow blue cyan magenta);
my @tmp = ();
for (@colors) {
push (@tmp, "bold $_");
}
@colors = (@colors, @tmp);
- or download this
my @colors = qw(red green yellow blue cyan magenta);
push @colors, map "bold $_", @colors;
- or download this
package IO::Drug;
use strict;
use Tie::Handle;
...
tie *STDERR, "IO::Drug", $err;
1;