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, in
};
}
}
}
#close outputfile
close (BOTH_IDS) || die("Can't close in file: $!");
**
I get all four values with::
my @array = keys %hash;
print $hash{$array[0]};
print"\n";
print $hash{$array[1]};
print"\n";
print $hash{$array[2]};
print"\n";
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
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
(keys %hash) {
print $hash{$_};
print "\n";}
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:
for
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
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]
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 code:
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 () {
if (/pattern/) {
#$line = $_ . $something;
#push (@new_array, $line);
}
else {
#$line = $_;
#push
... 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 start-stop-P
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 table.
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
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 t
Hi everybody!
I'm trying to read in an array every first String (Id-number) per line
out of tab-delimited text-files.
I only know how to read in complete lines per:
...
chomp ($filename1 = );
open(FILE1, $filename1);
@input1 = ;
Jane
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
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
--
15 matches
Mail list logo