Gkandoi has asked for the wisdom of the Perl Monks concerning the following question:
I've a list of numbers in the form X.X.X.X in my array.csv file. These are the different values for the ecNumber in getSequence command. Whenever I run it, it gives me an empty string. Where am I going wrong in this? I guess the problem lies in: 'ecNumber*$line' portion.#!/usr/bin/perl -w use SOAP::Lite; my $data = "D:array1.csv"; open(INPUT, $data) or die "Cannot open $data"; my $line = <INPUT>; while($line = <INPUT>) { $resultString = SOAP::Lite -> uri('http://www.brenda-enzymes.org/soap2') -> proxy('http://www.brenda-enzymes.org/soap2/brenda_server.php') -> getSequence("ecNumber*$line#source*Swiss-Prot#textmining*0") -> result; print $resultString; } close(INPUT);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Whats wrong with this code?
by Corion (Patriarch) on Sep 08, 2014 at 19:49 UTC | |
by Gkandoi (Initiate) on Sep 08, 2014 at 19:52 UTC | |
by Corion (Patriarch) on Sep 08, 2014 at 19:54 UTC | |
|
Re: Whats wrong with this code?
by toolic (Bishop) on Sep 08, 2014 at 19:56 UTC |