SyntaxFix
Write A Post
Hire A Developer
Questions
open f, "test.txt" $file = join '', <f>
<f> - returns an array of lines from our file (if $/ has the default value "\n") and then join '' will stick this array into.
<f>
$/
"\n"
join ''