http://qs321.pair.com?node_id=448849


in reply to Re^3: Four part JAPH
in thread Four part JAPH

Well, the word "Perl" should come out right as long as $=/($*+$,)+$| equals 11 and $; equals 0.

By the time the code gets there, $| is 1, $* is 2 and $, is 4, so $=/($*+$,)+$| = 60/(4+2)+1 which in turn equals 11. In your case, the result of that operation is probably returning 27 instead of 11 (if I did my calculations right).

One of those four variables is not getting the proper value it should. Try this: in the code, right before $a="\104\101\124\101", add something like print"<$=|$*|$,|$||$;>\n";, and then we'll be able to see what's wrong :-)

The correct output for that code should be <60|2|4|1|>.