in reply to recursive algorithm
@bases = split(//,"5.$basestring.3");
adds only '5' at the beginning and '3' at the end. But you are actually adding '5' and '.' at the beginning and '.' and '3' at the end. Check if your code works with@bases = split(//,"5".$basestring."3");
or@bases = split(//,"5${basestring}3");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: recursive algorithm
by Anonymous Monk on Sep 06, 2012 at 12:41 UTC |