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