This is the historical archive of the now-inactive 'grubstreet' list.
Discussion on OpenGuides development has now moved to OpenGuides-Dev. Discussion on The Open Guide to London now takes place on OpenGuides-London.

[grubstreet] Anatomy of UseMod part 2: rawusemod.pl

[prev] [thread] [next] [lurker] [Date index for 2002/11/14]

From: Ivor Williams
Subject: [grubstreet] Anatomy of UseMod part 2: rawusemod.pl
Date: 12:32 on 14 Nov 2002
------ =_NextPart_000_01C28BD9.F8E70910
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

Attached is a quick CGI which displays the page and keep file in Data::Dumper 
format.

 

Ivor.

------ =_NextPart_000_01C28BD9.F8E70910
Content-Type: application/octet-stream; name="rawusemod.pl"
Content-Transfer-Encoding: base64

IyFwZXJsCgp1c2Ugc3RyaWN0Owp1c2Ugd2FybmluZ3M7Cgp1c2UgQ0dJIHF3KDpzdGFuZGFyZCk7
CnVzZSBGaWxlOjpTcGVjOjpGdW5jdGlvbnMgcXcoOkFMTCk7CnVzZSBEYXRhOjpEdW1wZXI7Cgpw
cmludCBoZWFkZXIsc3RhcnRfaHRtbCgtdGl0bGU9PiJSYXcgVXNlTW9kIiksaDEoIlJhdyBVc2VN
b2QiKSwiXG4iOwoKcHJpbnQgc3RhcnRfZm9ybSx0YWJsZSgKCVRSKHRkKFsiV2lraSBSb290OiIs
dGV4dGZpZWxkKC1uYW1lPT4nd2lraXJvb3QnKV0pKSwKCVRSKHRkKFsiUGFnZSBuYW1lOiIsdGV4
dGZpZWxkKC1uYW1lPT4ncGFnZScpXSkpKSwKCXN1Ym1pdCgnR08nKSwKCWVuZF9mb3JtOwoKbXkg
JHdpa2lyb290ID0gcGFyYW0oJ3dpa2lyb290Jyk7Cm15ICRwYWdlID0gcGFyYW0oJ3BhZ2UnKTsK
bXkgJGZzID0gIlx4YjMiOwoKSFRNTF9SRU5ERVJJTkc6CnsKCglsYXN0IEhUTUxfUkVOREVSSU5H
IGlmICEkd2lraXJvb3Qgb3IgISRwYWdlOwoJbGFzdCBIV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OyA8PiB9OyAjIHNsdXJwIGVudGlyZSBmaWxlCgkk
dGV4dCA9fiBzLygkZnNcZHxeKShbXiRmc10qP1teJGZzXGRdLio/KSg/PSgkZnNcZHwkKSkvJDEn
JDInL2dzOwoJaWYgKCR0ZXh0ID1+IHMvJGZzXGQvLykgewoJCW15ICRzdHJ1bmcgPSAmcmVwbGFj
ZV9zZXBhcmF0b3JzKCR0ZXh0LCQmLCdbJywnXScpOwoJCQoJCW15ICRvdXQgPSBldmFsICRzdHJ1
bmc7CgkJCgkJcHJpbnQgcHJlKER1bXBlcigkb3V0KSk7Cgl9Cn0KCnByaW50IGVuZF9odG1sOwoK
c3ViIHJlcGxhY2Vfc2VwYXJhdG9ycyB7CglteSAoJHRleHQsJGRlbGltLCRvcGVuaW5nLCRjbG9z
aW5nKSA9IEBfOwoJCglteSBAY2h1bnggPSBzcGxpdCAvJGRlbGltLywkdGV4dDsKCQoJZm9yIChA
Y2h1bngpIHsKCQkkXyA9ICd1bmRlZicgaWYgJF8gZXEgJyc7CgkJJF8gPSByZXBsYWNlX3NlcGFy
YXRvcnMoJF8sJCYsJ3snLCd9JykgaWYgLyRmc1xkLzsKCX0KCQoJJG9wZW5pbmcgLiAoam9pbiAn
LCcsQGNodW54KSAuICRjbG9zaW5nOwp9Cg==

------ =_NextPart_000_01C28BD9.F8E70910--


-- 
grubstreet mailing list
http://london.openguides.org/old-list-archives/