NAME
Output::Rewrite - Rewrite your script output.
VERSION
Version 0.01
SYNOPSIS
use Output::Rewrite (
rewrite_rule => {
hoge => "fuga",
}
);
print "hoge hogehoge\n";
# fuga fugafuga
use Output::Rewrite (
rewrite_rule => {
'(?<=\b)hoge(?=\b)' => "fuga",
}
);
print "hoge hogehoge\n";
# fuga hogehoge
use Output::Rewrite (
rewrite_rule => {
'(\d)' => '$1!',
}
);
print "1234 I love Marine Corps!\n";
# 1!2!3!4! I love Marine Corps!
DESCRIPTION
This module helps you to rewrite your script output.
Set rewrite_rule(regex) when you load this module.
use Output::Rewrite (
rewrite_rule => {
'from' => 'to',
}
);
FUNCTIONS
There is no function.
AUTHOR
Hogeist, <mahito at cpan.org>
BUGS
Please report any bugs or feature requests to bug-output-rewrite at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Output-Rewrite. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Output::Rewrite
You can also look for information at:
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
RT: CPAN's request tracker
Search CPAN
ACKNOWLEDGEMENTS
COPYRIGHT & LICENSE
Copyright 2006 Hogeist, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.