Re: Help with LWP

2009-05-13 Thread ANJAN PURKAYASTHA
Yes tried the URL; http://www.ncbi.nlm.nih.gov/coreutils/dispatch.cgi. Got a "302 Found at lwp_test.pl line 23" error message. Thanks Anjan On Wed, May 13, 2009 at 5:57 PM, Dermot wrote: > 2009/5/13 Jim Gibson : > > On 5/13/09 Wed May 13, 2009 2:17 PM, "ANJAN PURKAYASTHA" > > scribbled: > > >

Re: Help with LWP

2009-05-13 Thread Dermot
2009/5/13 Jim Gibson : > On 5/13/09 Wed  May 13, 2009  2:17 PM, "ANJAN PURKAYASTHA" > scribbled: > >> Hi, >> >> if ($response->is_success) { >>      print $response->content()."\n";  # or whatever >>  } >>  else { >>      die $response->status_line; >>  } >> >> All this script returns is the NCBI

Re: Help with LWP

2009-05-13 Thread Jim Gibson
On 5/13/09 Wed May 13, 2009 2:17 PM, "ANJAN PURKAYASTHA" scribbled: > Hi, > Here is a beginner's LWP code that is not working. The script is supposed to > query the NCBI website with a user defined term: tuberculosis. The term is > entered into a search box. The user chooses a database from a

Re: Help with LWP

2009-05-13 Thread Gunnar Hjalmarsson
ANJAN PURKAYASTHA wrote: Hi, Here is a beginner's LWP code that is not working. The script is supposed to query the NCBI website with a user defined term: tuberculosis. The term is entered into a search box. The user chooses a database from a drop-down menu and then hits the Search button. Here

Help with LWP

2009-05-13 Thread ANJAN PURKAYASTHA
Hi, Here is a beginner's LWP code that is not working. The script is supposed to query the NCBI website with a user defined term: tuberculosis. The term is entered into a search box. The user chooses a database from a drop-down menu and then hits the Search button. Here is the code: #!/usr/bin/per