If I understand your question correctly, you need split() to get at the elements of your configuration lines. split can transform a line of space-separated texts into an array with the texts as array contents.
Just read the man-page (execute "perldoc -f split"), it has lots of examples