Nvm I solved that problem myself, I was just being stupid :p
Now the problem is that I only want certain information from the fstab, but I print all of the info from fstab.
Any clue on how to only print the information you want?
open FILE, "</mnt/etc/fstab";
my @lines = <FILE>;