I'm writing a program for fun to make Cramer's Rule easy to do, just by typing in some numbers. I put in this code for part of the script:
print "| $a1 $a2 $a3 | $a1 $a2\n";
print "| $b1 $b2 $b3 | $b1 $b2\n";
print "| $c1 $c2 $c3 | $c1 $c2\n";
And it comes out in the actual program looking like this:
| 1
2
3
| 1
2
| 5
6
7
| 5
6
| 9
1
2
| 9
1
The way I want the numbers to be set up is:
| 1 2 3 | 1 2
| 5 6 7 | 5 6
| 9 1 2 | 1 2
Any suggestions on how I would make this work this way?