This sounds a lot like homework:
In any case the functions you'll be wanting to use are
open and split. Though open can be skipped if you just
want to use @ARGV as your file argument. Error checking
is another consideration and will get you better grades.