in reply to url get with string
inside single quotes the $ is just more text, not the start of a variable name
Try
ormy $req = HTTP::Request->new(GET => "https://www.google.com/?name=$nam +e");
my $req = HTTP::Request->new(GET => 'https://www.google.com/?name='.$n +ame);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: url get with string
by bigup401 (Pilgrim) on Mar 23, 2017 at 09:07 UTC | |
by Corion (Patriarch) on Mar 23, 2017 at 09:11 UTC | |
by hippo (Archbishop) on Mar 23, 2017 at 09:11 UTC |