NAME

String::Gsub - regex on string object

VERSION

Version 0.04

SYNOPSIS

use String::Gsub qw(gstr);

print gstr("abcabc")->gsub(qr/b/,sub{uc$1}); # ==> "aBcaBc"
print gstr("hw")->gsub(qr/h/,"Hello")->gsub(qr/w/,"World"); # ==> "HelloWorld"

EXPORT

This module can export gstr. No functions are exported by default.

FUNCTIONS

gstr($str)

Alias for String::Gsub->new($str);

METHODS

$pkg->new($str)

Create new instance.

$this->gsub($regexp, $replacement)

process global substitute, and return new object.

$this->gsubx($regexp, $replacement)

like gsub, but replace self object and return itself.

$this->sub($regexp, $replacement)

process one substitute, and return new object.

$this->subx($regexp, $replacement)

like sub, but replace self object and return itself.

$this->stringy()

returns string value contained in.

AUTHOR

YAMASHINA Hio, <hio at cpan.org>

BUGS

Please report any bugs or feature requests to bug-string-gsub at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=String-Gsub. 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 String::Gsub

You can also look for information at:

SEE ALSO

String::Gsub, String::Gsub::Functions

ACKNOWLEDGEMENTS

COPYRIGHT & LICENSE

Copyright 2006 YAMASHINA Hio, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.