]> git.vpit.fr Git - perl/modules/re-engine-Plugin.git/blobdiff - Plugin.pod
This is 0.12
[perl/modules/re-engine-Plugin.git] / Plugin.pod
index e69c8f4b45c4299972b6abdec8ba4f51aa43b9a1..98633c4fadebf42436e1c8f1643fbb46da846336 100644 (file)
@@ -4,7 +4,7 @@ re::engine::Plugin - API to write custom regex engines
 
 =head1 VERSION
 
-Version 0.10
+Version 0.12
 
 =head1 DESCRIPTION
 
@@ -99,7 +99,7 @@ not be trapped by an C<eval> block that the pattern is in, i.e.
        comp => sub {
            my $rx = shift;
            croak "Your pattern is invalid"
-               unless $rx->pattern ~~ /pony/;
+               unless $rx->pattern =~ /pony/;
        }
    );
 
@@ -119,7 +119,7 @@ invalid pattern such as C</(/>.
             my ($rx, $str) = @_;
 
             # We always like ponies!
-            if ($str ~~ /pony/) {
+            if ($str =~ /pony/) {
                 $ponies++;
                 return 1;
             }
@@ -164,7 +164,7 @@ L</callbacks> method.
 
 =head2 str
 
-    "str" ~~ /pattern/;
+    "str" =~ /pattern/;
     # in comp/exec/methods:
     my $str = $rx->str;
 
@@ -187,7 +187,7 @@ hashrefs, objects, etc.
 =head2 mod
 
     my %mod = $rx->mod;
-    say "has /ix" if %mod ~~ 'i' and %mod ~~ 'x';
+    say "has /ix" if %mod =~ 'i' and %mod =~ 'x';
 
 A key-value pair list of the modifiers the pattern was compiled with.
 The keys will zero or more of C<imsxp> and the values will be true
@@ -332,7 +332,7 @@ callbacks:
                     my ($re, $paren) = @_;
 
                     # This is perl's engine doing the match
-                    $str ~~ /(.*)/;
+                    $str =~ /(.*)/;
 
                     # $1 has been untainted
                     return $1;
@@ -488,7 +488,7 @@ Vincent Pit C<< <perl at profvince.com> >>
 
 Copyright 2007,2008 E<AElig>var ArnfjE<ouml>rE<eth> Bjarmason.
 
-Copyright 2009,2010,2011,2013,2014 Vincent Pit.
+Copyright 2009,2010,2011,2013,2014,2015 Vincent Pit.
 
 This program is free software; you can redistribute it and/or modify it
 under the same terms as Perl itself.