The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OT: Perl problem



----- Original Message -----
From: "Tony Butler" <lists@xxxxxxx>
>
> I know there's gonna be some perl whizzes here, so perhaps you could
help
me
> out as someone not at all familiar with perl:
>
> I need to read in a text file about 15Mb in size and basically split
it
into 80
> chars per line + a new line char on the end.
> and spit it out again
>
> eg. instead of AGATCAGTACTGACTTGATCAGTTACGTCATGTACGT
> have
> AGATATC
> CATGACT
> TAGCATA
> CATGATA
> [obviously that wasn't 80 chars, per line, but u get the idea.
>
> I'm thinking coz it's such a large file that reading it ann in one go
isn't a
> good idea :/  Am complete n00b to perl, so would appreciate any help.

Can't help, as I have no Perl myself, just insanely curious... did you
actually pick those four letters at random for a demonstration, or do you
have a looong stream of DNA sequence?

Ian



Home | Main Index | Thread Index

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.