0x2A has asked for the wisdom of the Perl Monks concerning the following question:
This works fine but is not very readable. So I tried the following:$url = "http://host/index.php?option1=&option2=128&option3="; $option3 = 42; $response = $useragent->get( $url . $option3 );
This does not work. I tried '', undef and nothing as value of option1. None of this work. Can anyone tell me how to set an empty value for option1, please?$url = "http://host/index.php"; $option3 = 42; $response = $useragent->get( $url, 'option1' => '', 'option2' => 128, 'option3' => $option3, );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to set empty value for option in LWP-Get-Form
by Aristotle (Chancellor) on Feb 24, 2006 at 20:55 UTC | |
by 0x2A (Initiate) on Feb 25, 2006 at 11:05 UTC |