Alessandro has asked for the wisdom of the Perl Monks concerning the following question:
>protein_name1
blablabla
>protein_name2
blablabla
>protein_name3
blablabla
The problem is, I only get the first sentence starting with ">" and all the others are ignored. So in my example, I only get as output:#!/usr/bin/perl use strict; use warnings; use LWP::Simple; print "Please, enter an IPR number: "; chomp (my $IPR_numb = <STDIN>); my $data = get("http://www.uniprot.org/uniprot/?query=database:(type:i +nterpro+id:IPR$IPR_numb)&format=fasta"); my (@header) = $data =~ /^>(.+)/; print "@header\n";
>protein_name1".
I would like to have instead:>protein_name1
>protein_name2
>protein_name3
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Manipulating data retrieved with LWP
by toolic (Bishop) on Nov 20, 2015 at 17:35 UTC | |
by Alessandro (Acolyte) on Nov 20, 2015 at 18:10 UTC |