open my $fh, '<', '/home/test.xml' or die "Could not open file\n"; printFile($fh); close $fh;