but _cuberoot is a bit tougher if it might have negative bases:sub _cube { $_[0] ** 3 }
sub _cuberoot { my $res = abs($_[0])**(1/3); $_[0] < 0 ? -$res : $res; }
-- Randal L. Schwartz, Perl hacker
In reply to Re: Re: Re: Shading with HTML colors - color_munge
by merlyn
in thread Shading with HTML colors - color_munge
by $code or die
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |