Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I'm writing a program and I have the variable timeskew that I'm sending to another program. Whenever I set it up in the url to send, like www.foo.com/blah.cgi?timeskew=5, it ends up at www.foo.com/blah.cgi?xkew=5, leading me to believe perl substitutes the word "times" with the multiplication symbol.

Any suggestions on how I could get around this when I'm setting up a url to post to in a variable, i.e.

my $foo = "http://www.foo.com/blah.cgi?timeskew=5";

Thanks,
Jason

Replies are listed 'Best First'.
Re (tilly) 1: times = 'x'?
by tilly (Archbishop) on Jan 13, 2001 at 20:22 UTC
    Perl isn't doing that.

    Somewhere else in your script or a library that conversion is happening. But try the following Perl program out locally (ie not through a browser):

    my $foo = "http://www.foo.com/blah.cgi?timeskew=5"; print "$foo\n";
    How is the URL being sent? If you are sending it to a browser and thence to a CGI program, try "view source" on the page in the browser and see if you can see if the conversion happens before you send it or after it is received. If it happens before you send it then I would start looking around for some post-processing that got messed up. If it happens after you receive it I would strongly suspect that the receiving script does not use CGI. See chromatic's home node for why that is officially a Bad Idea.