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

Last revisionBoth sides next revision
reading_entire_file_into_a_string [2017/04/05 16:43] – created juckinsreading_entire_file_into_a_string [2017/04/05 16:43] 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> };
 </code> </code>
reading_entire_file_into_a_string.txt · Last modified: 2018/05/22 16:24 by juckins