another way to make query strings

merlyn on 2003-01-02T17:22:00

Since brian has comments disabled (again), I'll respond here to his entry:

my $query = do {
  require URI;
  my $u = URI->new;
  $u->query_form(
    TopOne => 1,
    userid => 'comdog',
    password => 'nope!',
    Attempt => 0,
  );
  $u->query;
};


nearly

gav on 2003-01-02T18:51:07

I think you mean $u->query_form instead of $u->query_string

very nearly

runrig on 2003-01-02T20:06:32

And even that doesn't take into account CGI.pm's 'sticky' parameters.