open (THISFILE,"textthought.txt")
Opens the file textthought.txt, and assigns the text in it to the file variable THISFILE.
foreach $line () {
The foreach loop loops though every line in the THISFILE variable. In other words, it goes through each line of the textthought.txt file.
At each line, it assigns the value of that line to the scalar variable $line.
<< BACK
NEXT >>