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 (Canon)
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?
[shmem]: consider, then, @CBMonks as a tied variable which triggers withdrawing empty cups and serving new ones
[GotToBTru]: it's always teatime somewhere
erix the sun never sets on the CB

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (14)
As of 2017-04-24 12:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (439 votes). Check out past polls.