Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Remove letters from variables used in math operation?

by AnomalousMonk (Abbot)
on Dec 08, 2012 at 21:22 UTC ( #1007930=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    >perl -wMstrict -le
    "my $s = '86f,934e,92,102i,14,19,222,';
    ...
     print $sum;
    "
    1469
    
  2. or download this
    >perl -wMstrict -le
    "use List::Util qw(sum);
    ...
     print $sum;
    "
    1469
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (9)
As of 2014-12-21 15:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (106 votes), past polls