good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Return the contents of a fileby jamescohen (Initiate) |
on Feb 04, 2000 at 23:02 UTC ( [id://2871]=CUFP: print w/replies, xml ) | Need Help?? |
I think that both of these use the minimum amount of code. (doing the job properly - using my and close)
Return the file contents as a scalar value
Post if you have a better way!
Returns the contents of a file in list form (line by line)
Back to
Cool Uses for Perl
|
|