in reply to Re: Re: Inline::Brainfck
in thread Inline::Brainfck

Change the line that reads

$code =~ s/\+/P++; /g;
To read:
$code =~ s/(\++)/"P+=".length($1).";" /eg;


Ah I think I forgot the e when I tried this before. Thanks.


By the way, wouldn't + become P++, and not $Inline::Brainfuck::p++?


Yes you're right.

--
જલધર