7 use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);
9 ###############################################################################
13 TmplToken.pm - Object representing a scanner token for .tmpl files
17 This is a class representing a token scanned from an HTML::Template .tmpl file.
21 ###############################################################################
28 ###############################################################################
32 my $class = ref($this) || $this;
35 ($self->{'_string'}, $self->{'_type'}, $self->{'_lc'}) = @_;
41 return $this->{'_string'}
46 return $this->{'_type'}
56 return $this->{'_attr'};
61 $this->{'_attr'} = ref $_[0] eq 'HASH'? $_[0]: \@_;
65 ###############################################################################