Any help? It always adds up to 17 when I include it in a script which throws in any number of arguments. Also: I'm trying to be more 'Perl Zen' but my code above looks like it'd be best friends with the cold and rigid likes of C++ or Java. Any tips for 'Perl'ifying this?sub total{ my $sum = shift(@_); foreach (@_){ $sum += @_; }
In reply to Rook question by squimby
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |