package Math::SymbolicX::Calculator::Command::Assignment; use 5.006; use strict; use warnings; use base 'Math::SymbolicX::Calculator::Command'; our $VERSION = '0.01'; sub new { my $proto = shift; my $class = ref($proto)||$proto; my %args = @_; my $self = bless { symbol => $args{symbol}, object => $args{object}, } => $class; return $self; } sub _execute { my $self = shift; my $c = shift; my $sym = $self->{symbol}; my $func = $self->{object}; $c->{stash}{$sym} = $func; return($sym, '==', $func); } 1; __END__ =head1 NAME Math::SymbolicX::Calculator::Command::Assignment =head1 SYNOPSIS Refer to Math::SymbolicX::Calculator::Command instead. =head1 DESCRIPTION Refer to L instead. =head1 METHODS =head2 new Creates a new object of this class. Details are discussed in L. =head1 SEE ALSO L L =head1 AUTHOR Steffen Müller, Esmueller@cpan.orgE =head1 COPYRIGHT AND LICENSE Copyright (C) 2006 by Steffen Müller This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.6 or, at your option, any later version of Perl 5 you may have available. =cut