http://www.perlmonks.org?node_id=78882


in reply to 73 chars, called on a foul (Re: LFSR golf)
in thread LFSR golf

Didn't know you wanted that. OK. New version (72 chars)
sub l{ my($s,$t)=@_;sub{($s=($s.(((my$x=$s+$t)=~y/1/1/d)%9%2)))=~s/5(.)/5/;$1 +} } $x=l("50101","0022");print ($x->(),$x->(),$x->(),$x->());