timothy adigun wrote:
On 8/29/12, John W. Krahn wrote:
timothy adigun wrote:
On 8/29/12, timothy adigun<2teezp...@gmail.com> wrote:
for(my $i=0; $i<= length(@startSite)-1; $i++) {
The above could be:
for(my $i=0; $i<= scalar (@startSite); $i++) {
...
for(my $i=0; $i
On Aug 29, 2012, at 3:37 PM, timothy adigun wrote:
>
>
> If the OP decides to use C style of for loop, this is CORRECT:
>
> for( my $i=1; $i <= scalar (@startSite); $i++ ){ ...
Almost. That has a off-by-one error, as $i should not be equal to
scalar(@startSite). I believe the following is
Hi,
On 8/29/12, John W. Krahn wrote:
> timothy adigun wrote:
>> Hi,
>
> Hello,
>
>> On 8/29/12, timothy adigun<2teezp...@gmail.com> wrote:
>>
for(my $i=0; $i<= length(@startSite)-1; $i++) {
>>>
>>>The above could be:
>>> for(my $i=0; $i<= scalar (@startSite); $i++) {
>>>...
On Aug 29, 2012, at 3:07 PM, Wang, Li wrote:
> Hi, John
>
> With the modified script, I got it work, but get some warnings when running
> through one file.
>
> Use of uninitialized value in numeric ge (>=) at searchAndPrint.pl line 50,
> line 3417.
> Use of uninitialized value in numeric g
2] > $stopSite[$i]) && ($dat[2]< $startSite[$i+1])){
print OUT "$_\tintergenicRegion\n";
last;
}
}
}
close FST;
close ANNO;
close OUT;
Best regards
Li
From: John W. Krahn [jwkr...@shaw.ca]
Sent: Wednesday, August 29, 2012 4:18 PM
timothy adigun wrote:
Hi,
Hello,
On 8/29/12, timothy adigun<2teezp...@gmail.com> wrote:
for(my $i=0; $i<= length(@startSite)-1; $i++) {
The above could be:
for(my $i=0; $i<= scalar (@startSite); $i++) {
...
for(my $i=0; $i<= scalar (@startSite); $i++) { ## Oops
for(my
Hi,
On 8/29/12, timothy adigun <2teezp...@gmail.com> wrote:
>> for(my $i=0; $i <= length(@startSite)-1; $i++) {
>
> The above could be:
> for(my $i=0; $i <= scalar (@startSite); $i++) {
> ...
for(my $i=0; $i <= scalar (@startSite); $i++) { ## Oops
for(my $i=0; $i <= scalar (@startS
Hi Wang, Li,
Please, check my comments below.
On 8/29/12, Wang, Li wrote:
> Dear All
>
> I have two input files. I want to search an element of File1 in File 2. If
> the condition matched, print out something.
> File1:
> scaffold_1_541600 0.856102487445412 0.295040551475357
> 0.
From: Jim Gibson [jimsgib...@gmail.com]
Sent: Wednesday, August 29, 2012 12:28 AM
To: perl list
Subject: Re: how to handle two input files
On Aug 28, 2012, at 9:01 PM, Wang, Li wrote:
> Dear All
>
[problem description snipped]
> My script is as follows. And
Shouldn't '#!/usr/bin/perl -w' be put on the top of the script?
On Tue, Aug 28, 2012 at 10:28 PM, Jim Gibson wrote:
>
> On Aug 28, 2012, at 9:01 PM, Wang, Li wrote:
>
>> Dear All
>>
>
> [problem description snipped]
>
>> My script is as follows. And usage is: ./myscript.pl FstFile.txt
>> annotat
On Aug 28, 2012, at 9:01 PM, Wang, Li wrote:
> Dear All
>
[problem description snipped]
> My script is as follows. And usage is: ./myscript.pl FstFile.txt
> annotationFile.txt
>
> # USAGE:
> # unix command line:
> # ./searchAndPrint.pl FstFile.name annotationFile.name
>
> #!/usr/bin/perl -
11 matches
Mail list logo