#!/usr/bin/perl # -------------------------------------------------------------------- # displaymd - display hydro group metadata # # aew - 091599 - Initial coding # -------------------------------------------------------------------- use CGI qw(:cgi); print "Content-type: text/html\n\n"; $recnum=0; # -------------------------------------------------------------------- # Print HTTP header and opening HTML tags. # # -------------------------------------------------------------------- print<<"header";
header # -------------------------------------------------------------------- # Read the metadata.txt file # -------------------------------------------------------------------- $fname = "/net/nfs/eos/data1/cv/www/metadata/input/metadata.txt"; open PFILE, $fname; if (!PFILE) { print "
Cannot open metadata file! \n"; exit; } else { print "
Data Set or Collection Name | \n"; print "Variables or Parameters | \n"; print "Institute | \n"; print "Contact | \n"; print "Further Information | \n";
print "
---|---|---|---|---|
".$name." | \n"; print "".$vars." | \n"; print "".$inst." | \n"; print "".$contact." | \n"; print ""; print " | \n"; print "