Also, if you're working with fractions davorg's Number::Fraction might be of interest.sub fraction { return @_ unless @_ == grep /\d+_\d+/, @_; my $args = defined wantarray ? [@_] : \@_; $_ = convert_num_here($_) for @$args; return wantarray ? @$args : $args[-1]; }
_________
broquaint
In reply to Re: Call sub first or later
by broquaint
in thread Call sub first or later
by kiat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |