Try this.
my $res = $ua->request(GET "http://www.ncbi.nlm.nih.gov/entrez/viewer.fcgi?val=$BCnumber&db=Nucle +otide&dopt=xml&txt=on");
In order to get your variables value substituted into the string, it needs to be interpolated. For this to happen, you need to indicate to Perl that you want it to do ths by using double-quotes rather than single quotes.
In reply to Re: sending a request to a web page
by BrowserUk
in thread sending a request to a web page
by Becky
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |