#Author: Shashidhar Vajramatti
#Version: 1.0

my $file_path = "c:\temp\shashi.xml";
open LARGE_XML,"< $file_path";
my $large_file_content = do{local $/;<LARGE_XML>};#This method is much faster and efficient.
close LARGE_XML;