1 package PPI::Token::Cast;
7 PPI::Token::Cast - A prefix which forces a value into a different context
17 A "cast" in PPI terms is one of more characters used as a prefix which force
18 a value into a different class or context.
20 This includes referencing, dereferencing, and a few other minor cases.
22 For expressions such as C<@$foo> or C<@{ $foo{bar} }> the C<@> in both cases
23 represents a cast. In this case, an array dereference.
27 There are no additional methods beyond those provided by the parent
28 L<PPI::Token> and L<PPI::Element> classes.
30 Got any ideas for methods? Submit a report to rt.cpan.org!
37 use vars qw{$VERSION @ISA};
46 #####################################################################
49 # A cast is either % @ $ or $#
50 sub __TOKENIZER__on_char {
51 $_[1]->_finalize_token->__TOKENIZER__on_char( $_[1] );
60 See the L<support section|PPI/SUPPORT> in the main module.
64 Adam Kennedy E<lt>adamk@cpan.orgE<gt>
68 Copyright 2001 - 2009 Adam Kennedy.
70 This program is free software; you can redistribute
71 it and/or modify it under the same terms as Perl itself.
73 The full text of the license can be found in the
74 LICENSE file included with this module.