now I will send the file I need to automatically download....I downloaded it manually, that&#39;s the runligplot.pl....because I need to automatically access to the script....to extract information about amminoacidic connections between ligand and receptor...<br>
<br><div class="gmail_quote">2009/4/2 Paola Bisignano <span dir="ltr">&lt;<a href="mailto:paola.bisignano@gmail.com">paola.bisignano@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
thank you....I&#39;m start programming with Perl and it&#39;s only a month...I&#39;m very new.... and i couldn&#39;t get <br><br><div class="gmail_quote">2009/4/1 marcos rebelo <span dir="ltr">&lt;<a href="mailto:oleber@gmail.com" target="_blank">oleber@gmail.com</a>&gt;</span><div>
<div></div><div class="h5"><br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">2009/4/1 Paola Bisignano &lt;<a href="mailto:paola.bisignano@gmail.com" target="_blank">paola.bisignano@gmail.com</a>&gt;:<br>



<div><div></div><div>&gt;<br>
&gt; #!/usr/local/bin/perl<br>
&gt; use LWP::Simple;<br>
&gt; use strict;<br>
&gt; use warnings;<br>
&gt; use LWP 5.64;<br>
&gt; use LWP::UserAgent;<br>
&gt; print &quot;Quale entry di PDB vuoi aprire? &quot;;<br>
&gt; my $pdb=&lt;STDIN&gt;;<br>
&gt; chomp ($pdb);<br>
&gt; my $url1 =<br>
&gt; &quot;<a href="http://www.ebi.ac.uk/thornton-srv/databases/cgi-bin/pdbsum/GetPage.pl?pdbcode=$pdb" target="_blank">http://www.ebi.ac.uk/thornton-srv/databases/cgi-bin/pdbsum/GetPage.pl?pdbcode=$pdb</a>&quot;;<br>
&gt; my $content = get $url1;<br>
&gt; die &quot;Couldn&#39;t get $url1&quot; unless defined $content;<br>
&gt; while ($content=~ m/uniprot_id=(.*?)&amp;/g)<br>
&gt;<br>
&gt;     {<br>
&gt;     my $code=$1;<br>
&gt;     print &quot;ID uniprot: $code\n&quot;;<br>
&gt;     chomp ($code);<br>
&gt;     my $browser =LWP::UserAgent-&gt;new;<br>
&gt;     my $url = URI-&gt; new (&quot;<a href="http://www.uniprot.org/uniprot/$code.fasta" target="_blank">http://www.uniprot.org/uniprot/$code.fasta</a>&quot;);<br>
&gt;     my $response=$browser-&gt; get ($url);<br>
&gt;     my $fasta=$response-&gt;content;<br>
&gt;     print &quot;$fasta&quot; ;<br>
&gt;     };<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; this is my script...first I must digit the pdb code (form my test I use<br>
&gt; 1xmj, that I&#39;m sure it has a ligand) I want to explore, (that&#39;s the code of<br>
&gt; a protein structure) and then I go to the web page...to extract another<br>
&gt; code, that&#39;uniprot code, so the script thakes that code and put it into<br>
&gt; another web site and estract and print the  aminoacidic sequence of the<br>
&gt; protein, then i need to know something about the ligand...and  I need to<br>
&gt; access to the file  running.pl that brings some information which I have to<br>
&gt; extract....and i don&#39;t know what to do<br>
&gt;<br>
</div></div><div>&gt; _______________________________________________<br>
&gt; Milan-pm mailing list<br>
&gt; <a href="mailto:Milan-pm@pm.org" target="_blank">Milan-pm@pm.org</a><br>
&gt; <a href="http://mail.pm.org/mailman/listinfo/milan-pm" target="_blank">http://mail.pm.org/mailman/listinfo/milan-pm</a><br>
&gt;<br>
&gt;<br>
<br>
</div>your code is similar to this simpler code:<br>
<br>
#!/usr/local/bin/perl<br>
use strict;<br>
use warnings;<br>
use LWP::Simple;<br>
<div><br>
print &quot;Quale entry di PDB vuoi aprire? &quot;;<br>
my $pdb = &lt;STDIN&gt;;<br>
chomp ($pdb);<br>
</div>my $url = &quot;<a href="http://www.ebi.ac.uk/thornton-srv/databases/cgi-bin/pdbsum/GetPage.pl?pdbcode=$pdb" target="_blank">http://www.ebi.ac.uk/thornton-srv/databases/cgi-bin/pdbsum/GetPage.pl?pdbcode=$pdb</a>&quot;;<br>



my $content = get($url);<br>
die &quot;Couldn&#39;t get $url&quot; unless defined $content;<br>
foreach my $code ( $content =~ m/uniprot_id=(.*?)&amp;/g) {<br>
<div>    print &quot;ID uniprot: $code\n&quot;;<br>
    chomp ($code);<br>
</div>    my $fasta=get(&quot;<a href="http://www.uniprot.org/uniprot/$code.fasta" target="_blank">http://www.uniprot.org/uniprot/$code.fasta</a>&quot;);<br>
    print &quot;$fasta&quot; ;<br>
};<br>
<br>
<br>
Now, you need to explain your problem to someone that doesn&#39;t know<br>
anything about this bio stuff.<br>
<div><div></div><div><br>
Best Regards<br>
Marcos Rebelo<br>
<br>
--<br>
Marcos Rebelo<br>
<a href="http://oleber.freehostia.com" target="_blank">http://oleber.freehostia.com</a><br>
Milan Perl Mongers leader <a href="http://milan.pm.org" target="_blank">http://milan.pm.org</a><br>
_______________________________________________<br>
Milan-pm mailing list<br>
<a href="mailto:Milan-pm@pm.org" target="_blank">Milan-pm@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/milan-pm" target="_blank">http://mail.pm.org/mailman/listinfo/milan-pm</a><br>
</div></div></blockquote></div></div></div><br>
</blockquote></div><br>