in reply to Re^2: Pass arguments in URL
in thread Pass arguments in URL
to->query_form(@args);
but both are ok. So that leaves the bad return value. Fixed:->query_form(\@args);
use URI qw( ); sub url_freeze { my $url = URI->new(shift, 'http'); $url->query_form(@_); return $url } my $url = url_freeze('/cgi-bin/details', %args);
It won't freeze recursively, of course.
|
|---|