Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: splitting data advice required

by almut (Canon)
on May 13, 2009 at 14:06 UTC ( [id://763766]=note: print w/replies, xml ) Need Help??


in reply to Reaped: sorry -double post

I thought initially I could just split on new line, but I cant due to the sequence data occurring over several lines

Split on entire records, a record being header + sequence.  It looks like the appropriate record separator would be newline followed by '>' (i.e. "\n>"). Then split each record into header and sequence, by treating stuff up to the first newline as header.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://763766]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2024-03-29 06:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found