Perl Monk, Perl Meditation | |
PerlMonks |
Re: Weird substitution, missing outputby LanX (Saint) |
on May 10, 2019 at 11:38 UTC ( [id://1233559]=note: print w/replies, xml ) | Need Help?? |
Hello Please show us the expected output and what you got for a short example input. See also SSCCE
Cheers Rolf
UpdateAfter reading brainfuck I'm understanding your problem is that you are inserting + symbols as c-code which is replaced later as BF code. Translating linear code with a series of global s///g substitutions rarely works, because you are running over your own output. But Anonymous Monk has already given you an excellent answer in the meantime.
In Section
Seekers of Perl Wisdom
|
|