in reply to Simple add and multiply subroutines
But it would be nicer to separate your arguments up front:
my ($operation, @operands) = @ARGV or die usage(); if ($operation eq 'add') { my $sum = add(@operands); ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Simple add and multiply subroutines
by negzero7 (Sexton) on Apr 08, 2008 at 02:41 UTC |