in reply to Re^2: Print out an XML file to browser
in thread Print out an XML file to browser
#!/usr/local/bin/perl use strict; use warnings; use CGI qw(:standard); use CGI::Carp qw(fatalsToBrowser); print header('text/xml'); my $file = "/some/file.xml"; open(XMLFILE, $file) or die "Failed to open $file, $!"; while (<XMLFILE>){ print; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Print out an XML file to browser
by lakeTrout (Scribe) on Feb 20, 2007 at 06:58 UTC | |
Re^4: Print out an XML file to browser
by been42 (Curate) on Feb 20, 2007 at 14:55 UTC |