%header_order membership
Cliff Wheatley (cwheat@concordia.net)
Tue, 12 Aug 1997 05:37:10 -0500
I'm using HTTP::Headers to create a header object. I have a list of
possible header values; From, Host, If-Modified-Since, etc. I'd like to
test to see if they are in %header_order before adding them. There are
other values that I don't want added if they don't exist in %header_order.
I've tried:
if (defined HTTP::Headers::$header_order{$key}) { }
This errors out, "bad name". That's because the hash is lexically scoped,
right? I didn't see a method that will let me check on header_order
membership. Is there another way to do something like above without
recreating the hash in my package? TIA.
-Cliff ^ --_ |
When the chips are down, ( ( _ T | Don't get buffaloed.
the buffalo is empty. "" v ! ! """""" | Instead, visit =>
' ' | http://www.concordia.net/DIY/