Help for this page
return $self->[$position] = $value;
#create a new object
my $x = new Complex;
$x->Imag(-5); #set $x's imaginary part to '-5'
print $x->Real." ".$y->Imag; #prints '3 -3'
"\"\"" => \&Cmp_string,
"+" => \&Cmp_add,
"*" => \&Cmp_multiply;
print $x; #prints '3 - 5I'
my $str = "$x"; #$str = '3 - 5I'
$x = $x + $y;
$y = $x + 2;
$y = 2 + $x;
$y = $x * $x;
$y = $x * 2;
$y = 2 * $x;
#get the object
return new Complex($real, $imag);
#module exit status
I make decisions, and my brain carries them out
My brain makes the decisions, and I observe them (if I'm lucky)
I make some decisions, and my brain makes others
My spouse makes decisions and I and my brain carry them out
I wrote a program to relieve me and my brain from the burden of decision-making
The black-helicopter people project the decisions into my brain and then I do as ordered
Results (54 votes),