in reply to put file content into a string
open IN, "<myFile"; while(<IN>) { # read the file in, line by line $str .= $_; } close IN; [download]