... Part of a script I wrote involves reading a file into an array then putting that array into one character string. Since I wasn't sure whether there was a shortcut to do that (just read a file into a scalar, no array), here's what I did:
open(f, "$filename"); @file = <f>; close(f)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.