Try reading the Perl tutorials here on Perl Monks. Pretty good stuff. If you want concrete working code, take a look at the solutions to the exercises there too. The most immediately relevant ones for your situation seem to be those covering the basic datatypes and File Input and Output.
Your code does open the file, now you just need to stick the data from it into an array. And clean up the syntax errors and extraneous stuff in your variable declarations (one hint: don't use spaces in your variable names.)