View Single Post
Team Leader
13Jul2010,18:49  
pradeep's Avatar
Easy way of 'slurping' contents of a file

Code: Perl
open H,"<file.txt";
my $data = do{ local $/; <H>;};
close H;