thank you but i've narrowed it down to something else - sorry for the confusion.
the running of the script was working - the error was on displaying... the perl script generates a valid xml document. but when attempting to display the same output (xml) to a browser - naturally adding use CGI; a server error is displayed on the browser. only way i see getting around this is by adding print header; which no longer gives the error - but now get an invalid xml formed document - correctly so since the first line is now "Content-type: text/html" and not <?xml ver.....> catch-22 use CGI qw(:standard); print header; ##print "Content-type:text/xml\n\n"; print qq(<?xml version="1.0" encoding="ISO-8859-1"?>\n); print qq(<?xml-stylesheet type="text/xsl" href="labor.xsl"?>\n); tried text/xml but that behaves as if the print header was not there. so .... any idea on how to have the xml generated from a perl script using cgi correctly be allowed to display??? again sorry for the cofusion - but this be it.... <quote who="-alpha-"> > could you post your javascript ? > 2006/3/14, Mario R. Sanchez, Ph.D. <[EMAIL PROTECTED]>: >> >> your ideas: >> >> i have a perl script x.pl that outputs a text file and does nothing >> else. >> runs great. >> >> i want to run that script automatically when a user calls up an html >> document. >> >> using javascript and body onload has not worked (perhaps doing something >> wrong). >> >> any specific suggestions on how to run x.pl automatically from an html >> doc? >> >> thank you so much. >> >> _______________________________________________ >> ActivePerl mailing list >> [email protected] >> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs >> > > > > -- > Mylene Farmer Forever > _______________________________________________ > ActivePerl mailing list > [email protected] > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs _______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
