Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Product of a list of numbers?

by Abigail-II (Bishop)
on Jan 23, 2004 at 10:20 UTC ( [id://323495]=note: print w/replies, xml ) Need Help??


in reply to Product of a list of numbers?

For a quick and dirty way, I like to do stuff like:
sub product { my $list = shift; local $" = "*"; `echo '@$list' | bc` }

Abigail

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://323495]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2024-04-26 08:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found