Hi: I just ran into a situation that has me perplexed -- let me illustrate. First, I am trying to get an environmental cgi script to do its thing in two different ways. One is a direct call to the cgi script that generates an internal html document for printing the environmental variables (this works); And the other, is a call to a smaller cgi script that is executed from within a shtml document (this doesn't work the same). Let me illustrate. First, the self-contained cgi code (as provided by chuck) which works: #!/usr/bin/perl print "Content-type:text/html\n\n"; print "<html><head><title>ENV Variables</title></head> <body bgcolor=\"#ffffff\" text=\"#000000\"> <h1>Environment Variables</h1><hr> Environment Variables [ENV]<P>\n"; foreach $ele (keys (%ENV)) { print "[$ele]\t$ENV{$ele}<BR>\n"; } print "</body></html>"; exit; This code executes very well and produces the result I want as shown by: http://www.sperling.com/cgi-bin/envirVariables.cgi However, when I place a condensed version of the cgi script (named "ev.cgi") such as: #!/usr/bin/perl print "Content-type:text/html\n\n"; foreach $ele (keys (%ENV)){ print "[$ele]\t$ENV{$ele}<BR>\n"; } print "all done\n"; And then, executed this cgi script from a .shtml document, namely: <html> <head> <meta http-equiv="content-type" content="text/html;charset=ISO-8859-1"> <title>This is a Environmental Variables test</title> </head> <body bgcolor="#ffffff"> <h1>Environment Variables</h1><hr> <!--#exec cgi="/cgi-bin/ev.cgi"--> </body> </html> As shown by: http://sperling.com/test.shtml I receive the same variables as shown before, but there are a lot more data that are shown and they are in a different order. What's up with that? What am I doing wrong? Many thanks in advance for any replies and consideration. tedd -- http://sperling.com/ _______________________________________________________ Thinking about buying Jewelry? Try our site: http://earthstones.com ==== Want to unsubscribe from this list? ==== Send mail with body "unsubscribe" to macperl-webcgi-request@macperl.org