Lang::Tree::Builder::Scalar - simple class representing a scalar.
my $scalar = new Lang::Tree::Builder::Scalar(); $scalar->is_scalar == 1; # true $scalar->name eq 'scalar'; # true $scalar->lastpart eq 'scalar'; # true
This class is polymorphic with Lang::Tree::Builder::Class and represents a simple scalar in a way that is convenient for the templates.
Lang::Tree::Builder::Class
Creates a new instance of a scalar. This is called via Lang::Tree::Builder::Class::new and so is effectively a singleton.
Lang::Tree::Builder::Class::new
Returns true.
Returns false.
Returns scalar.
scalar
To install Lang::Tree::Builder, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lang::Tree::Builder
CPAN shell
perl -MCPAN -e shell install Lang::Tree::Builder
For more information on module installation, please visit the detailed CPAN module installation guide.