View Single Post
Light Poster
9Jan2008,12:41  
sriv's Avatar
Hi i am using the following code to display the .XLS file

if i want to display the content from 2 .XLS files in a single output file then what should i do
can any one please help?
in the below code if i want to display the conetent from both $FILE and $FILE2 then how?
------------------------------ code ----------------------------------------
Code:
print "Content-Type: application/vnd.ms-excel\n\n";
    binmode(STDOUT);
	if(-e "/tmp/$FILE") {
		open(XLS, "/tmp/$FILE") || die("Error: $FILE no longer exists!");
		binmode(XLS);
		while(<XLS>) {
			print $_;
		}
		close XLS;

		unlink("/tmp/$FILE") if(-e "/tmp/$FILE");

	}
-----------------------------------------------------------------------------------

Last edited by shabbir; 9Jan2008 at 14:05.. Reason: Code block