Hi
I am a new user in perl. I want to make a subroutine that takes the taxonomy-id as input and returns the list of leaf nodes as output and I wrote this script but it's not working. Any suggestion? Thanks in advance.
#!/usr/bin/perl
use strict;
my @leafnodes_list = getleafnodes (my $taxid);
print @leafnodes_list;
sub getleafnodes
{
my ($taxid) = @_;
print "type Taxid number:";
$taxid = <STDIN>;
chomp $taxid;
foreach (@_){
"getz [taxonomy-ID:$taxid] >_ tax_down";
return @_;
}
}
I am a new user in perl. I want to make a subroutine that takes the taxonomy-id as input and returns the list of leaf nodes as output and I wrote this script but it's not working. Any suggestion? Thanks in advance.
#!/usr/bin/perl
use strict;
my @leafnodes_list = getleafnodes (my $taxid);
print @leafnodes_list;
sub getleafnodes
{
my ($taxid) = @_;
print "type Taxid number:";
$taxid = <STDIN>;
chomp $taxid;
foreach (@_){
"getz [taxonomy-ID:$taxid] >_ tax_down";
return @_;
}
}
Comment