open ($FILE, $txt_file) || die "Cannot open $txt_file:$!"; $contents=join('',<FILE>); [download]
In reply to Putting file contents into a scalar by ByteOrNybble