This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Improve perldiag/Eval-group not allowed at runtime
authorFather Chrysostomos <sprout@cpan.org>
Sun, 13 Feb 2011 20:36:39 +0000 (12:36 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 13 Feb 2011 20:36:39 +0000 (12:36 -0800)
• Mention use re 'eval' within the description
• Improve text flow

pod/perldiag.pod

index 3338d71..82e6889 100644 (file)
@@ -1698,10 +1698,11 @@ is unsafe.  See L<perlre/(?{ code })>, and L<perlsec>.
 
 (F) Perl tried to compile a regular expression containing the
 C<(?{ ... })> zero-width assertion at run time, as it would when the
-pattern contains interpolated values.  Since that is a security risk, it
-is not allowed.  If you insist, you may still do this by explicitly
-building the pattern from an interpolated string at run time and using
-that in an eval().  See L<perlre/(?{ code })>.
+pattern contains interpolated values.  Since that is a security risk,
+it is not allowed.  If you insist, you may still do this by using the
+C<re 'eval'> pragma or by explicitly building the pattern from an
+interpolated string at run time and using that in an eval().  See
+L<perlre/(?{ code })>.
 
 =item %s: Eval-group not allowed, use re 'eval'