]> git.vpit.fr Git - perl/modules/indirect.git/blobdiff - lib/indirect.pm
Document and test constant folding
[perl/modules/indirect.git] / lib / indirect.pm
index 734896a4d6db6bd5ac02a1a971996d13b8b7ae63..6e99ebaf06b7ae490e2911b884edf7894bfa8b5a 100644 (file)
@@ -162,6 +162,9 @@ C<meth $obj> (no semicolon) at the end of a file won't be seen as an indirect ob
 With 5.8 perls, the pragma does not propagate into C<eval STRING>.
 This is due to a shortcoming in the way perl handles the hints hash, which is addressed in perl 5.10.
 
+The search for indirect method calls happens before constant folding.
+Hence C<my $x = new Class if 0> will be caught.
+
 =head1 DEPENDENCIES
 
 L<perl> 5.8.