in reply to Can't call method "abs" on an undefined value.
instead ofsub _interval { my ($min, $max) = ( min(@_), max(@_) ); return bless [ ... ], __PACKAGE__; } Math::Interval::_interval(...)
sub new { my $class = shift; my ($min, $max) = ( min(@_), max(@_) ); return bless [ ... ], $class; } Math::Interval->new(...)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Can't call method "abs" on an undefined value.
by HollyKing (Pilgrim) on May 05, 2006 at 23:35 UTC |