Help for this page

Select Code to Download


  1. or download this
    c:\@Work\Perl\monks>perl -wMstrict -le
    "use List::Util qw(sum);
    ...
    -11
    ^Z
    The total of user-input integers is 115.8
    
  2. or download this
    sub total {
      my $u_i = join '', @_;
    ...
      ;;
      return sum $u_i =~ m{ $n }xmsg;
      }