Re: Dear answerers - sorry

2002-06-25 Thread Richard Adams
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

2002-06-25 Thread Richard Adams
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 

beginners@perl.org

2002-06-24 Thread Richard Adams
'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

Re: Use of our

2002-06-04 Thread Richard Adams
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]

Use of our

2002-06-04 Thread Richard Adams
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]

Re: Ok- real dumb question

2002-05-07 Thread Richard Adams
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

Re: Sorting problem-part2

2002-05-06 Thread Richard Adams
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} )

Re: Sorting problem

2002-05-06 Thread Richard Adams
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

Sorting problem

2002-05-06 Thread Richard Adams
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

Selftuition

2002-04-29 Thread Richard Adams
. 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