in reply to Input from source

you can directly open the file using some filehandler and parse it accordingly. below is the snippet

open (IN,"file.txt") or die ("Blah Blah"); while (<IN>){ Blah Blah Blah }
Thats it!!! :)