I'm interacting with a
Except that the libraries don't seem to fully cover this. Thankfully there's a URLEncoder class, or might just crawl away and die, but there's nothing to create the whole POST request for me from a HashMap or something. I have to generate all the headers myself, including the content-length, and I have to encode each parameter individually and glue them all together myself with = and
Annoying. So I guess I'll subclass HashMap myself and do it that way. Fun little exercise, I suppose, but this should be there for me.
Not subclassing… (Score:2)
Re: (Score:2)
It's a little late. :)
But really, I don't see how I'm more flexible for implementing Map than simply subclassing HashMap. That just seems like a lot of trouble writing delegates methods that would otherwise just be there if I subclass. It's probably because Perl is the screwdriver with which I attempt to hammer every nail, and the Perl version of hashes as one of the three fundamental data structures is indelibly marked on my mind.
I suppose it makes things easier if ever I want to use some other struc
J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers