I have downloaded LWP module from CPAN and installed it successfully. When i tried using the module in one of my programs, i was not able to connect to the mentioned url. whereas the same program worked properly in a different machine and i was able to fetch the results. The program which gave an error was .....
"Couldn't get http://www.syfpeithi.de/scripts/MHCServer.dll/EpitopePre
+diction?Motif=ALL&amers=9&SEQU=ALFKTPLSV
&DoIT=++Run++ at test.pl line 16, <IN> line 1."
The program is given below. Is it something to do with the HTTP server in my machine????
#!/usr/bin/perl
use lib "/home/guest/modules/libwww-perl-5.812/lib";
use LWP::Simple;
open(IN,"all_peptides") or die "Cant open file\n";
while (eof(IN)==0)
{
$i++;
chomp($line=<IN>);
open(OUT,">/home/guest/$line.html") or die "Cant open $line.txt file \
+n";
my $url="http://www.syfpeithi.de/scripts/MHCServer.dll/EpitopePredicti
+on?Motif=ALL&amers=9&SEQU=$line&DoIT=++Run++";
my $content = get $url or die "Couldn't get $url" unless defined $cont
+ent;
print OUT "$content";
close OUT;
}
close IN;
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.