in reply to Re: LWP::UserAgent; HTTP::Headers; HTTP::Request; CGI; automated scripts
in thread LWP::UserAgent; HTTP::Headers; HTTP::Request; CGI; automated scripts
Yeah, and if you're not on a system with a shell or printenv, you can do it in Perl if you insist:#!/bin/sh echo content-type: text/plain echo printenv
See how much simpler that is? And no problems if there's HTML involved.#!/usr/bin/perl print "Content-type: text/plain\n\n"; print "$_\t$ENV{$_}\n" for sort keys %ENV;
Sometimes, HTML is overkill.
-- Randal L. Schwartz, Perl hacker
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Dumping the CGI environment
by tachyon (Chancellor) on Sep 24, 2001 at 06:38 UTC | |
by merlyn (Sage) on Sep 24, 2001 at 12:38 UTC | |
by tachyon (Chancellor) on Sep 24, 2001 at 13:23 UTC |