[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Help with Perl/Browser data transfer



At 11.09 97/5/9, Richard Rathe wrote:
>Wouldn't it be possible to "stuff" the %ENV array from a text file on your
>disk, perhaps by substituting another "glue" wrapper that loads said
>variable? RR

Well, that's similar to what Angus meant when he said:

"  2. Test your scripts separately, feeding them the required
     environment variables manually (i.e. by hacking them
     into the code of the script temporarily)."

You could put in a separate file, or you could just preface your script
with something like this:

%ENV = (
        'HTTP_USER_AGENT','Mozilla 3.01 (RhaposdyOS)',
        'QUERY_STRING','this=no&that=yes',
);

--
Chris Nandor                 pudge@pobox.com                 http://pudge.net/
%PGPKey=('B76E72AD',[1024,'08 24 09 0B CE 73 CA 10  1F F7 7F 13 81 80 B6 B6'])
#=============================================================================
I had just received my degree in Calcium Anthropology...  The study of
milkmen.
                --Steven Wright
#=============================================================================



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch