in reply to Read file contents

Since you are very new to perl, you might find the information on perl101.org helpful. It contains good examples of how to open and read from files on this page: Perl101 - Files.