Re: Counting (easy!) - select???

2003-11-13 Thread Christiane Nerz
quite interesting chunk of code - but what the hell does select does here? Yeah - I rtfm - but didn't understand it - maybe one could explain it in more simple words? Jane Kevin Old wrote: What I wanted to do was to make each number appear in sequence like you see in a countdown (or up,

print values out of a hash - got the faults

2003-11-12 Thread Christiane Nerz
Hi everybody! I got the mistakes - no bugs but simple human errors ;-) My program wasn't working correctly, because two hashes wasn't filled properly and the reason for the miraculous different output of the values of that hash was a simple typo - I typed once hash_fasta1 and the second time

Re: print values out of a hash

2003-11-12 Thread Christiane Nerz
;} I only get the value corresponding to $hash{$array[3]}. Jane James Edward Gray II wrote: On Nov 11, 2003, at 1:47 PM, Christiane Nerz wrote: Hi! If I want to print out every value of a hash, what's wrong with doing it like that: foreach (keys %hash) { print $hash{$_}; print \n;} Why

Re: print values out of a hash

2003-11-12 Thread Christiane Nerz
jepp - all four are there.. I really don't understand it. thx so far - I have to finish for today - my little baby-son is crying :-( Jane ... As near as I can tell, the above two chunks of code have identical effects. If you put the first chunk in the program EXACTLY where the foreach() loop

Re: print values out of a hash

2003-11-12 Thread Christiane Nerz
oh nice - like that I get all keys and the corresponding values printed.. But I only wanted to get all values :-) Jane Andrew Gaffney wrote: James Edward Gray II wrote: On Nov 11, 2003, at 1:47 PM, Christiane Nerz wrote: Hi! If I want to print out every value of a hash, what's wrong with doing

Re: print values out of a hash - filling the hash

2003-11-12 Thread Christiane Nerz
only get the value corresponding to $hash{$array[3]}. James Edward Gray II wrote: If you would like to post more of your code, I would be happy to take a look at it. James On Nov 11, 2003, at 2:27 PM, Christiane Nerz wrote: jepp - all four are there.. I really don't understand it. thx so far - I

print values out of a hash

2003-11-11 Thread Christiane Nerz
Hi! If I want to print out every value of a hash, what's wrong with doing it like that: foreach (keys %hash) { print $hash{$_}; print \n;} Why do I only get one value??? Jane -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

pattern matching

2003-10-27 Thread Christiane Nerz
Hi everybody! Two questions: I've got a test-file and want to add something to some lines, while reading it out. I tried the following code: while (TXTFILE) { if (/pattern/) { #$line = $_ . $something; #push (@new_array, $line); } else { #$line = $_;

Re: pattern matching

2003-10-27 Thread Christiane Nerz
SORRY! copy-and-paste-error...I tried it without the ### ;-) and tried too the print-statement-thing. Seems the regex is wrong, but why? Jane Stephen Hardisty wrote: Two questions: I've got a test-file and want to add something to some lines, while reading it out. I tried the following

array of arrays

2003-10-20 Thread Christiane Nerz
Hi! How do I read data out of a table-file in an array-of-arrays? Problem: I have to compare two tables with pairs of start-stop-Positions. I want to find out, which pair of Start-Stop-Position in table_1 is entirely within the range marked by a pair of start-stop-positions of the second

Re: array of arrays

2003-10-20 Thread Christiane Nerz
... from two text files. Output of a pattern-searching-program and data out of a DB (genebank). No prob to read in those data in a textfile too. Stephen Hardisty wrote: How do I read data out of a table-file in an array-of-arrays? Problem: I have to compare two tables with pairs of

chmod

2003-09-04 Thread Christiane Nerz
Hi all! I like to read several rows out of two different table-files and put them successively in a new file by: @ergebnis_alles[$#ergebnis_alles+1] = @whole_data1[$l] . $whole_data2[$m]; Anything works fine, except that I can't delete the ending newline in the lines in the first tables. So

Re: chmod -- chomp not chmod!!

2003-09-04 Thread Christiane Nerz
Oh-oh - there was a mistake - I tried chomp, not chmod.. How do I use chomp correctly? I have an array of strings, want to cut off the last \n in each line and use the rest of the line. (concatenate it to another string) Jane Hi all! I like to read several rows out of two different table-files

no subject

2002-05-15 Thread Dr. Christiane Nerz
Hi all! Do you know if there ist a perl implementation for suffix-trees and the ukkonen algorithm? Jane Keine verlorenen Lotto-Quittungen, keine vergessenen Gewinne mehr! Beim WEB.DE Lottoservice: http://tippen2.web.de/?x=13