Help for this page

Select Code to Download


  1. or download this
    $_=6491;
    sum(some_function(split//));
    
  2. or download this
    s/(\d)/$s+=$1/ge; # $s is the sum...
    
    ...
    # But thenagain, this is even shorter:
    
    $s+=$_ for/./g;