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'}, $self->{'_path'}) = @_;
41 return $this->{'_string'}
46 return $this->{'_type'}
51 return $this->{'_path'}
61 return $this->{'_attr'};
66 $this->{'_attr'} = ref $_[0] eq 'HASH'? $_[0]: \@_;
70 ###############################################################################