in reply to Re: Sum to 100 at Rosetta Code
in thread Sum to 100 at Rosetta Code

Strange. It compiles and runs for me under Windows 8.1, 64-bit:

22:52 >perl 1870_Med.pl Show all solutions that sum to 100 123-45-67+89 12-3-4+5-6+7+89 12+3+4+5-6-7+89 123+4-5+67-89 -1+2-3+4+5+6+78+9 1+2+3-4+5+6+78+9 12+3-4+5+67+8+9 1+23-4+56+7+8+9 1+2+34-5+67-8+9 1+23-4+5+6+78-9 123+45-67+8-9 123-4-5-6-7+8-9 Show the sum that has the maximum number of solutions sum: 9; solutions: 46 Show the lowest positive sum that can't be expressed 211 Show the ten highest numbers that can be expressed 123456789 23456790 23456788 12345687 12345669 3456801 3456792 3456790 3456788 3456786 22:52 >perl -v This is perl 5, version 26, subversion 0 (v5.26.0) built for MSWin32-x +64-multi-thread-ld

Have you double-checked the contents of your choroba.pl file?

Update: FWIW, I get the same result under Cygwin:

$ perl -v This is perl 5, version 22, subversion 4 (v5.22.4) built for cygwin-th +read-multi

Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,