aeqr has asked for the wisdom of the Perl Monks concerning the following question:
I have tried the diamond operator but I am not sure on how to use it in that case. Thanks!my @seq1; my @seq2; load_seqs(\@seq1,\@seq2); sub load_seqs{ open(my $fh, "<", "q1.fa") or die "cannot open sequence file: $!"; while(my $line=<$fh>){ if($line =~ m/^(?!\>).*\n$/){push (@{$_[0]},$line)}; } open(my $fh, "<", "q2.fa") or die "cannot open sequence file: $!"; while(my $line=<$fh>){ if($line =~ m/^(?!\>).*\n$/){push (@{$_[1]},$line)}; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: use of diamond operator for multiple files
by davido (Cardinal) on Apr 23, 2014 at 17:59 UTC | |
by aeqr (Novice) on Apr 23, 2014 at 18:20 UTC | |
by davido (Cardinal) on Apr 23, 2014 at 18:39 UTC | |
|
Re: use of diamond operator for multiple files
by Not_a_Number (Prior) on Apr 23, 2014 at 20:16 UTC | |
by aeqr (Novice) on Apr 23, 2014 at 21:07 UTC | |
|
Re: use of diamond operator for multiple files
by Laurent_R (Canon) on Apr 23, 2014 at 18:48 UTC | |
|
Re: use of diamond operator for multiple files
by hdb (Monsignor) on Apr 24, 2014 at 12:16 UTC | |
|
Re: use of diamond operator for multiple files
by Laurent_R (Canon) on Apr 23, 2014 at 18:42 UTC |