CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate: Re: [zafar] why the "get" does not bring: Edit Log



Zhris
User

May 16, 2011, 6:07 AM


Views: 2397
Re: [zafar] why the "get" does not bring

Hi,

Firstly, its best to assign the complete url to a seperate variable, otherwise Perl can have difficulty figuring out what is meant to be interpolated and what isn't in a string.


Code
my $url = $f->{srv_htdocs_url} . '/index.html'; 
my $res = $ua->get($url);


This will possibly solve your issues.

Chris


(This post was edited by Zhris on May 16, 2011, 6:24 AM)


Edit Log:
Post edited by Zhris (User) on May 16, 2011, 6:24 AM
Post edited by Zhris (User) on May 16, 2011, 6:24 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives