in reply to Add a list of numbers together

Why not just:

sub add { eval join '+', @_ };

Update
Fixed syntax error spotted by the person with the ridiculously long name.

--
<http://www.dave.org.uk>

European Perl Conference - Sept 22/24 2000
<http://www.yapc.org/Europe/>

Replies are listed 'Best First'.
RE: RE: Add a list of numbers together
by i43s (Novice) on Jun 29, 2000 at 22:35 UTC
    Syntax error my friend, you must first close the parens that you open. Nice code otherwise.