in reply to Re: Re: Shading with HTML colors - color_munge
in thread Shading with HTML colors - color_munge
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
|
|---|