Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


reading_entire_file_into_a_string

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
reading_entire_file_into_a_string [2017/04/05 16:43]
juckins
reading_entire_file_into_a_string [2018/05/22 16:24] (current)
juckins
Line 12: Line 12:
 open (READ_WGET_FILE,​ "<​$data_dir/​$wget_saved_filename"​);​ open (READ_WGET_FILE,​ "<​$data_dir/​$wget_saved_filename"​);​
 $file_contents = do { local $/; <​READ_WGET_FILE>​ }; $file_contents = do { local $/; <​READ_WGET_FILE>​ };
 +close (READ_WGET_FILE);​
 </​code>​ </​code>​
reading_entire_file_into_a_string.txt ยท Last modified: 2018/05/22 16:24 by juckins