I want to write a Perl Script that reads a file.txt with columns of numbers,
20 30 12 31 20 54 63 30 21 11 12 10
and do some calculatio
Use the open command. Plenty of good examples on that page.