Think about Loose Coupling | |
PerlMonks |
Re^4: writing array element to a fileby francesca1987 (Initiate) |
on Apr 25, 2013 at 13:22 UTC ( [id://1030670]=note: print w/replies, xml ) | Need Help?? |
Hi R!
I modified the script as you suggested,
while (my $line=<$in>) {
if($line=~/^>/) {
my @vettore=split(/\s+/, $line);
print $out "$vettore1\n";
}
}
but the output file only contained 0, which is the number of the first line.
What's I did wrong?
In Section
Seekers of Perl Wisdom
|
|