Mathias Kende > String-Replace-0.02 > String::Replace::Safe

Download:
String-Replace/String-Replace-0.02.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.02   Source  

NAME ^

String::Replace::Safe - Performs arbitrary replacement in strings, safely

SYNOPSIS ^

  use String::Replace::Safe ':all';
  
  print replace('hello name', 'name' => 'world');
  print unreplace('hello world', {'name' => 'world'});
  
  my $r = String::Replace::Safe->new('name' => 'world');
  print $r->replace('hello world');

DESCRIPTION ^

String::Replace::Safe is a safe version of the String::Replace library. That is that this version does not depend on the order of evaluation of the argument to its function. This version is also consistently slower than the unsafe version (by a factor of approximately 50%).

Apart from that, the interface of the safe version is exactly the same (both functionnal and object oriented) as the interface of the String::Replace library. Hence the absence of documentation here.

BUGS ^

Please report any bugs or feature requests to bug-string-replace@rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=String-Replace.

AUTHOR ^

Mathias Kende (mathias@cpan.org)

VERSION ^

Version 0.02 (January 2013)

COPYRIGHT & LICENSE ^

Copyright 2013 © Mathias Kende. All rights reserved.

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

syntax highlighting: