JavaScript::Code::Variable

JavaScript::Code::Variable module contains a JavaScript variable element.
Download

JavaScript::Code::Variable Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Sascha Kiefer
  • Publisher web site:
  • http://search.cpan.org/~esskar/Catalyst-Plugin-Session-Store-File-0.10/lib/Catalyst/Plugin/Session/Store/File.pm

JavaScript::Code::Variable Tags


JavaScript::Code::Variable Description

JavaScript::Code::Variable module contains a JavaScript variable element. JavaScript::Code::Variable module contains a JavaScript variable element.SYNOPSIS #!/usr/bin/perl use strict; use warnings; use JavaScript::Code::Variable; my $string = JavaScript::Code::Variable->new(); $string->name( 'a' ); $string->value( 'This is a Test!' ); print $string->output; my $number = JavaScript::Code::Variable->new()->name('b')->value( 288957 ); print $number->output; my $strnumber = JavaScript::Code::Variable->new( name => 'c' ); $strnumber->value( JavaScript::Code::String->new(value => 288957) ); print $strnumber->output; my $array = JavaScript::Code::Variable->new( { name => 'd' } ); $array->value( ); print $array->output;METHODSnew$self->name( $name )Gets or sets the name of the variable.$self->full_name( )Gets the full name, that is, the name including the any index information$self->value( $value )Gets or sets the value of the variable.$self->declared( undef | 0 | 1 )If set to undef, the module will check the scope to decide whether or not the variable should be declared.If set to 0, the module is undeclared und will be declared in its context.If set to 1, the variable will to be declared in its context.$self->output( )Returns the javascript-code for that variable.$self->same( $var )Two variables are the same if they have the same name.$self->equal( $var )Two variables are equal if they have the same value. Requirements: · Perl


JavaScript::Code::Variable Related Software