1 package PPI::Structure::For;
7 PPI::Structure::For - Circular braces for a for expression
11 for ( var $i = 0; $i < $max; $i++ ) {
24 C<PPI::Structure::For> is the class used for circular braces that
25 contain the three part C<for> expression.
29 C<PPI::Structure::For> has no methods beyond those provided by the
30 standard L<PPI::Structure>, L<PPI::Node> and L<PPI::Element> methods.
32 Got any ideas for methods? Submit a report to rt.cpan.org!
37 use PPI::Structure ();
39 use vars qw{$VERSION @ISA};
42 @ISA = 'PPI::Structure';
45 # Highly special custom isa method that will continue to respond
46 # positively to ->isa('PPI::Structure::ForLoop') but warns.
49 if ( $_[1] and $_[1] eq 'PPI::Structure::ForLoop' ) {
50 unless ( $has_warned ) {
51 warn("PPI::Structure::ForLoop has been deprecated");
56 return shift->SUPER::isa(@_);
65 See the L<support section|PPI/SUPPORT> in the main module.
69 Adam Kennedy E<lt>adamk@cpan.orgE<gt>
73 Copyright 2001 - 2009 Adam Kennedy.
75 This program is free software; you can redistribute
76 it and/or modify it under the same terms as Perl itself.
78 The full text of the license can be found in the
79 LICENSE file included with this module.