Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

vsergu (505)

  (email not shown publicly)

Journal of vsergu (505)

Monday April 29, 2002
03:39 PM

"Argh!"-inducing 5.6-ism

[ #4543 ]

I've never used the new version syntax (v1 = "\x01", v1.2 = "\x01\x02", etc.), but I finally got bitten by it. I was using LWP to for a post request in which some of the parameters were named v1, v2, etc., and I did this:

$req = POST "$site/execute_search.wmt",
        tab => 'search',
        # more parameters, including several like this:
        v16 => $num_date,

So of course I was unknowingly sending a bunch of parameters with control-character names. Just when I'd gotten used to leaving off the quotes around things like 'time' and 'm' when they occur before the autoquoting =>, now I have to start worrying again! I guess it's really not a bug, though, just a 5.5-to-5.6 trap.

And of course there was enough other weirdness going on (cookies, nonstandard redirects, and other barriers to normal retrieval), that it took me a couple of hours to find the problem.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.