in reply to Re: Math::BigPositiveOkayPrecision prototype
in thread Math::BigPositiveOkayPrecision prototype
Thanks. I've added:
sub __args { my( $x, $y, $rev )= @_; $y= $x->new( $y ) if ! ref $y; ( $x, $y )= ( $y, $x ) if $rev; return( $x, $y ); }
So that boiler-plate reduces to: my( $x, $y )= __args( @_ ); in 6 places.
- tye
|
---|