1 package PPI::Structure::Constructor;
7 PPI::Structure::Constructor - Anonymous hash or array constructor
11 my $array = [ 'foo', 'bar' ];
12 my $hash = { foo => 'bar' };
16 PPI::Structure::Constructor
23 C<PPI::Structure::Constructor> is the class used for anonymous C<ARRAY>
24 reference of C<HASH> reference constructors.
28 C<PPI::Structure::Constructor> has no methods beyond those provided by
29 the standard L<PPI::Structure>, L<PPI::Node> and L<PPI::Element> methods.
31 Got any ideas for methods? Submit a report to rt.cpan.org!
36 use PPI::Structure ();
38 use vars qw{$VERSION @ISA};
41 @ISA = 'PPI::Structure';
50 See the L<support section|PPI/SUPPORT> in the main module.
54 Adam Kennedy E<lt>adamk@cpan.orgE<gt>
58 Copyright 2001 - 2009 Adam Kennedy.
60 This program is free software; you can redistribute
61 it and/or modify it under the same terms as Perl itself.
63 The full text of the license can be found in the
64 LICENSE file included with this module.