7;m more in favor of a gentle flaming at the top of the reply; as an
> added bonus, since most of these yahoos also top-post that's where
> they'll first look for any answer.
>
>
> %
> % Jenda
>
>
> HAND
>
> :-D
--
Dr Richard Adams
Chromosome St
Thanks, that's a neat trick - I hadn't realised you could still capture
things from within a lookahead.
Richard
> On Jun 24, Richard Adams said:
>
>> @peptides = $sequence =~ /(\w{4}S\w{4})/g;
>>
>> this works up to a point, but if there are 2 adjacent
't extract DFRSSSGHY above.
. Is it possible to try the next match from
within the previous match to remedy this?
Thanks for any tips or flashes of inspiration,
Richard
--
Dr Richard Adams
University of Edinburgh
Kings Buildings,
Mayfield Rd,
Edinburgh
Email [EMAIL PROTECTED]
--
To
Many thanks,
The fog has lifted and all has become clear...
Richard
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
ng it within a block of the
current package?
Any help in clearing the fog from my brain greatly appreciated...
--
Richard Adams
University of Edinburgh
Kings Buildings,
Mayfield Rd,
Edinburgh
EH9 3JR UK
Email [EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
ails, 3, 1; #get rid of unwanted middle name field
}
push @list, [@details]; #make array of arrays.
}
foreach (@list) {
foreach (@$_) {
print "$_:"
}
print "\n";
}
--
Dr Richard Adams
Chromosome S
Now I've got an array of hashes, where each hash can have different keys
e.g.,
@aoh = ( {H3 =>234, H1 =>127, DNA =>1, p135 =>167},
{H4=>24, H3=>1550, DNA =>25, p39 =>67},
{H3 =>34, H2A =>125, DNA =>5, p32 =>7},
{H3 =>24, H4 =>156, DNA =>123, p12 =>13}
)
Thanks for all your help...I just forgot the sort in my post...
The reason it wasn't working wasn't the sort, it was just that $AoA[0] was
undefined..
But sort {$a->[2] <=> $b->[2]} @AoA[1..$#AoA] works just fine.
Thanks again!
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comman
hould look like:
1: 87
2: 23
3: 12.4
I've tried
@sorted = {$a ->[2] <=> $b ->[2]} @AoA but this gives a "cannot
modify.."error.
I've a feeling this is really trivial but have got abit bogged down with
it...
Thanks in advance
Ric
. Also I find the exercises in the
deitel book for C very useful for getting the syntax firmly learned.
This is my first post so hope it's suitable,
--
Dr Richard Adams
University of Edinburgh
Kings Buildings,
Mayfield Rd,
Edinburgh
Email [EMAIL PROTECTED]
<http://www.ed.ac.uk/~rradams/pas
10 matches
Mail list logo