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

Next revision
Previous revision
reading_entire_file_into_a_string [2017/04/05 16:43] – created juckinsreading_entire_file_into_a_string [2018/05/22 16:24] (current) juckins
Line 10: Line 10:
  
 <code> <code>
-# put contents of the file we saved into a variable 
 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.1491425009.txt.gz · Last modified: 2017/04/05 16:43 by juckins