in reply to Golf code in perl

Applying a few standard golf tricks...

<>=~$";$\+=2*$s[$_%$']++for split$",<>;print

44, pad as required :)

Replies are listed 'Best First'.
Re^2: Golf code in perl
by tt08 (Initiate) on Mar 11, 2017 at 12:22 UTC
    So cool!Thank u
A reply falls below the community's threshold of quality. You may see it by logging in.