++ for removing the loop. I had a thought about your randombase routine, though. I came up with:
sub randombase { # Prevent us from returning the same symbol my @list = grep { $_ ne $_[0] } @symbols; return $list[rand(@list)]; }
...roboticus
In reply to Re^2: Help regarding the outout of the program
by roboticus
in thread Help regarding the outout of the program
by minnie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |