in reply to Re: Passing Any Range of Values to a Sub
in thread Passing Any Range of Values to a Sub

print eval join (shift @ARGV eq 'add' ? '+' : '*', @ARGV);

Fun, but maybe a bit unclear ...
  • Comment on Re: Re: Passing Any Range of Values to a Sub